Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started