Advertisements
Advertisements
प्रश्न
Inheritance supports reusability.
विकल्प
True
False
MCQ
सत्य या असत्य
उत्तर
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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?