Question: Q2 using java Draw an inheritance hierarchy for students at a university. Use Student as the superclass of the hierarchy, and then extend Student with

Q2 using java

Draw an inheritance hierarchy for students at a university. Use Student as the superclass of the hierarchy, and then extend Student with classes Undergraduate Student and Graduate Student. Continue to extend the hierarchy as deep (i.e., as many levels) as possible. For example, freshman, sophomore, Junior and Senior might extend undergraduate Student, and Doctoral Student and Masters Student might be subclasses of graduate Student. After drawing the hierarchy, discuss the relationships that exist between the classes. Write a program that illustrates the above idea of hierarchy.

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!