Advertisements
Advertisements
प्रश्न
Define the term inheritance.
परिभाषा
Advertisements
उत्तर
Inheritance is an object-oriented programming mechanism in which a new class acquires the properties and methods of an existing class. The existing class is called the base/parent/superclass, and the new class is called the derived/child/subclass. It promotes code reusability.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
