English

List three features that make inheritance an important characteristic of OOP.

Advertisements
Advertisements

Question

List three features that make inheritance an important characteristic of OOP.

Short Answer
Advertisements

Solution

  1. Code reusability: Common data and methods of the base class are reused by derived classes.
  2. Extension: A derived class can add new attributes and behaviours without changing the base class.
  3. Transitive nature: A class derived from another derived class also receives the properties of the original base class.
shaalaa.com
  Is there an error in this question or solution?
Chapter 2: Concept of Object Oriented Programming - EXCERCISE [Page 37]

APPEARS IN

CBSE Computer Science with Python [English] Class 12
Chapter 2 Concept of Object Oriented Programming
EXCERCISE | Q 5. | Page 37
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×