Advertisements
Advertisements
प्रश्न
List three features that make inheritance an important characteristic of OOP.
लघु उत्तर
Advertisements
उत्तर
- 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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
