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

1 Expert Approved Answer
Step: 1 Unlock

Undergraduate Student is a Student Graduate Student ... View full answer

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 Computer Engineering Questions!