English

Define the term inheritance.

Advertisements
Advertisements

Question

Define the term inheritance.

Definition
Advertisements

Solution

Inheritance is an object-oriented programming mechanism in which a new class acquires the properties and methods of an existing class. The existing class is called the base/parent/superclass, and the new class is called the derived/child/subclass. It promotes code reusability.

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

Englishहिंदीमराठी


      Forgot password?
Use app×