Answered step by step
Verified Expert Solution
Link Copied!

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 4 instance variables, but for school, set it generically to high school, middle school, or elementary as follows:
Grades 9-12- high school
Grades 6-8- 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

=+ Does it speak to you in a personal way? Does it solve a problem?

Answered: 1 week ago