[Solved] SOLVED:Polymorphism Lab solution

$25

File Name: SOLVED:Polymorphism_Lab_solution.zip
File Size: 301.44 KB

SKU: [Solved] SOLVED:Polymorphism Lab solution Category: Tag:
5/5 - (1 vote)

The source code for Student, CollegeStudent, and HighSchoolStudent are already provided. You will be creating a class ElementarySchoolStudent, which inherits from Student and writing the rest of the source code for main in the StudentDriver class.

Print the following menu:

Choose one of the following:

1. Create an Elementary School Student

2. Create a High School Student

3. Create a College Student

4. Print out all students

5. Exit

If the user decides to create a HighSchoolStudent, the user will be prompted for the appropriate information (name, age, address, high school name, counselor name, year and grade point average), and then create a HighSchoolStudent object by calling the constructor with this information:

Each object created will be put into an ArrayList.

To print out all students, call the printStudent() method for each student in the array.

ElementarySchoolStudent

Inherits from StudentLook at driver to determine what instance variables will be needed for the ElementarySchoolStudent class.Provide a constructor that has parameters for all the information required for a ElementarySchoolStudent and a default (no-arg) constructorProvide getters and settersProvide a toString method

Take a screenshot of Print out all students after adding at least one Elementary School, High School and College student.

Upload your StudentDriver.java and your screenshot.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] SOLVED:Polymorphism Lab solution
$25