English

Inheritance supports reusability. - Computer Applications

Advertisements
Advertisements

Question

Inheritance supports reusability.

Options

  • True

  • False

MCQ
True or False

Solution

This statement is True.

Explanation:

  1. Inheritance is a key aspect of object-oriented programming (OOP), allowing a class to inherit properties and behaviours (fields and methods) from its parent class.
  2. This approach increases reusability by allowing the child (derived) class to reuse the code defined in the parent class, minimizing repetition and making the code easier to maintain.
shaalaa.com
  Is there an error in this question or solution?
Chapter 8: Encapsulation and Inheritance - EXERCISES [Page 444]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 8 Encapsulation and Inheritance
EXERCISES | Q III. 1. | Page 444
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×