Question: Modify the student class to include a private variable for graduation year. Modify the person class to include a private variable for the birthdate. Modify

Modify the student class to include a private variable for graduation year.
Modify the person class to include a private variable for the birthdate.
Modify the undergraduate class to include a private variable the major.
Modify the polymorphism class to ask the user the following:
How many people?
Read the names?
Ask is the person a student? Read the student ID.
if the person is a student, you have to ask : is the person undergraduate student or not? if yes, read the level.
Print out your final people array.
Submit all the modified files
PolymorphismDemo.javaDownload PolymorphismDemo.java
UndergraduateDemo.java Download UndergraduateDemo.java
Undergraduate.java Download Undergraduate.java
Person-2.java Download Person-2.java
Student-1.java Download Student-1.java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!