- 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
प्रश्न
Explain the following concept related to the object oriented programming:
Inheritance
स्पष्ट करा
Advertisements
उत्तर
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2024-2025 (July) Official Board Paper
