Advertisements
Advertisements
Question
List three features that make inheritance an important characteristic of OOP.
Short Answer
Advertisements
Solution
- Code reusability: Common data and methods of the base class are reused by derived classes.
- Extension: A derived class can add new attributes and behaviours without changing the base class.
- 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?
