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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
