Advertisements
Advertisements
Question
Inheritance supports reusability.
Options
True
False
MCQ
True or False
Solution
This statement is True.
Explanation:
- 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.
- 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?