Question: *** please don't use handwriting *** ************* I need unique answer ***** Q3: Can a derived class (i.e., Subclass) directly invoke a private method of
*** please don't use handwriting ***
************* I need unique answer *****
Q3:
Can a derived class (i.e., Subclass) directly invoke a private method of the base class (i.e., Super class)? Explain your Answer.
Q4:
Draw an Inheritance hierarchy for students at a university similar to the hierarchy as shown in the Figure below.

Figure: Inheritance hierarchy for university CommunityMember
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. DoctoralStudent and MastersStudent might be subclasses of GraduateStudent. After drawing the hierarchy, discuss the relationships that exist between the classes.
[Note: You do not need to write any code for this question]
Community Member Employee Student Alumnus Faculty Staff Administrator Teacher
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
