Solution to Draw an inheritance hierarchy for students at a university similar to the hierarchy shown in … - Sikademy
Author Image

Archangel Macsika

Draw an inheritance hierarchy for students at a university similar to the hierarchy shown in above fig. 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. Write proper code to implement the inheritance.

Hmmm... This is a tough one :(

We need the Motivation and Support! 💪

Our expert tutor in charge of answering this question
needs a cup of coffee to get pumped!

Buy her a cup or more ☕

And unlock the solution to this question.

Related Answers

Was this answer helpful?

Join our Community to stay in the know

Get updates for similar and other helpful Answers

Question ID: mtid-3-stid-6-sqid-154-qpid-7