English

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

Advertisements
Advertisements

Question

Based on the above diagram, answer the following;

  1. Write the name of the base class and derived classes.
  2. Write the type of inheritance depicted in the above diagram.
Very Short Answer
Advertisements

Solution

  1. Base is the base class. Derived 1 and Derived 2 are the derived classes.
  2. It depicts hierarchical inheritance, because more than one class inherits from the same base class.
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 7. | Page 77
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×