Advertisements
Advertisements
Question
Based on the given diagram, answer the following;

- Write the name of the base class and derived class of state.
- Write the type of inheritance depicted in the diagram.
Very Short Answer
Advertisements
Solution
- The class above
Statein the diagram is the base class;Stateis the derived class. - It depicts single inheritance, because one derived class inherits from one base class.
shaalaa.com
Is there an error in this question or solution?
