हिंदी

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;

  1. Write the name of the base class and derived class of state.
  2. Write the type of inheritance depicted in the diagram.
अति संक्षिप्त उत्तर
Advertisements

उत्तर

  1. The class above State in the diagram is the base class; State is the derived class.
  2. It depicts single inheritance, because one derived class inherits from one base class.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 4: Inheritance - EXERCISE [पृष्ठ ७७]

APPEARS IN

सीबीएसई Computer Science with Python [English] Class 12
अध्याय 4 Inheritance
EXERCISE | Q 6. | पृष्ठ ७७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×