Based on the given diagram, answer the following; Country State City Write the name of the base class and derived class of state. Write the type of inheritance depicted in the diagram.
Advertisements
Advertisements
प्रश्न
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.
अति संक्षिप्त उत्तर
Advertisements
उत्तर
- 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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
