Draw an inheritance hierarchy for students at a university. Use Student as the base class of the
Fantastic news! We've Found the answer you've been seeking!
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 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.
Related Book For
Business Statistics
ISBN: 978-0321925831
3rd edition
Authors: Norean Sharpe, Richard Veaux, Paul Velleman
Posted Date: