Question: Draw an inheritance hierarchy for students at a university . Use Student as the superclass of the hierarchy, then extend Student with classes UndergraduateStudent and
Draw an inheritance hierarchy for students at a university . Use Student as the superclass of the hierarchy, then extend Student with classes UndergraduateStudent and GraduateStudent. Continue to extend the hierarchy as deep (i.e., as many levels) as possible. For example, Freshman, Sophomore, Junior and Senior might extend UndergraduateStudent, and DoctoralStudent and MastersStudent might be subclasses of GraduateStudent. After drawing the hierarchy, discuss the relationships that exist between the classes. [Note: You do not need to write any code for this exercise.]
Step by Step Solution
3.38 Rating (151 Votes )
There are 3 Steps involved in it
To draw an inheritance hierarchy for students at a university we will create a structured system of classes showing how more specific types of student ... View full answer
Get step-by-step solutions from verified subject matter experts
