Question: Draw an inheritance hierarchy for students at a university. Use Student as the base class of the hierarchy, then include classes UndergraduateStudent and GraduateStudent that
Draw an inheritance hierarchy for students at a university. Use Student as the base class of the hierarchy, then include classes UndergraduateStudent and GraduateStudent that derive from Student . Continue to extend the hierarchy as deep (i.e., as many levels) as possible. For example, Freshman, Junior, and Senior might derive from UndergraduateStudent, and DoctoralStudent and MastersStudent might derive from a graduate student. After drawing the hierarchy, discuss the relationships that exist between the classes. Also, implement the above hierarchy using C++ code.
Step by Step Solution
3.35 Rating (161 Votes )
There are 3 Steps involved in it
Undergraduate Student is a Student Graduate Student ... View full answer
Get step-by-step solutions from verified subject matter experts
