Draw an inheritance hierarchy for students at a university similar to the hierarchy shown in Fig 9.2. Use Student as the superclass of the hierarchy, then, extend Student with classes Undergraduate Student and Graduate Student. Continue to extend the hierarchy as deep (i.e., as many levels as possible). For example, Freshmen, Sophomore, Junior, and the Senior might extend Undergraduate Student and Doctoral Student and Masters Student might be subclasses of Graduate Students. After drawing the hierarchy, discuss the relationships that exist between the classes. [Note: You do not need to write any code for this exercise]
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
Draw an inheritance hierarchy for students at a university similar to the
hierarchy shown in Fig 9.2. Use Student as the superclass of the hierarchy, then, extend Student
with classes Undergraduate Student and Graduate Student. Continue to extend the hierarchy as
deep (i.e., as many levels as possible). For example, Freshmen, Sophomore, Junior, and the
Senior might extend Undergraduate Student and Doctoral Student and Masters Student might be
subclasses of Graduate Students. After drawing the hierarchy, discuss the relationships that exist
between the classes. [Note: You do not need to write any code for this exercise]
I am not understanding this. Help me please do this specifically in JAVA...or Eclipse.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images