Based on the above diagram, answer the following; (i) Write the name of the base class and derived classes. (ii) Write the type of inheritance depicted in the above diagram.
Advertisements
Advertisements
Question
Based on the above diagram, answer the following;

- Write the name of the base class and derived classes.
- Write the type of inheritance depicted in the above diagram.
Very Short Answer
Advertisements
Solution
Baseis the base class.Derived 1andDerived 2are the derived classes.- It depicts hierarchical inheritance, because more than one class inherits from the same base class.
shaalaa.com
Is there an error in this question or solution?
