English

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

Question

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

Solution

  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
  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 6. | Page 77
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×