- Inheritance is a feature of OOP where one class acquires the properties and methods of another class.
- The existing class is called the Base class (Parent class), and the new class is called the Derived class (Child class).
- It allows code reusability, as the child class can use the data and functions of the parent class.
- It helps in creating a hierarchical relationship between classes.
- Inheritance improves program organization and maintainability.
Advertisements
Advertisements
Question
Explain the following concept related to the object oriented programming:
Inheritance
Explain
Advertisements
Solution
shaalaa.com
Is there an error in this question or solution?
2024-2025 (July) Official Board Paper
