Advertisements
Advertisements
Question
Define the term inheritance.
Definition
Advertisements
Solution
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
Is there an error in this question or solution?
