Question: We are going to use the Student class and complete it by writing a two constructors ( overloading the constructor ) . The first constructor
We are going to use the Student class and complete it by writing a two constructors overloading the constructor
The first constructor should take first name, last name, grade, and school, then set all the instance variables accordingly.
The second constructor should take first name, last name, and grade. Set all instance variables, but for school, set it generically to high school, middle school, or elementary as follows:
Grades high school
Grades middle school
All others elementary school
You should also update the toString method to include and goes to and the school level that the Student goes to
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
