- 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
