मराठी

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

Advertisements
Advertisements

प्रश्न

Based on the above diagram, answer the following;

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

उत्तर

  1. Base 1 and Base 2 are the base classes. Derived is the derived class.
  2. It depicts multiple inheritance, because one derived class inherits from two base classes.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 4: Inheritance - EXERCISE [पृष्ठ ७७]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×