English

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

Question

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.
Very Short Answer
Advertisements

Solution

  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
  Is there an error in this question or solution?
Chapter 4: Inheritance - EXERCISE [Page 77]

APPEARS IN

CBSE Computer Science with Python [English] Class 12
Chapter 4 Inheritance
EXERCISE | Q 8. | Page 77
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×