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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
