हिंदी

Explain the following concept related to the object oriented programming: Inheritance - Computer Science 1

Advertisements
Advertisements

प्रश्न

Explain the following concept related to the object oriented programming:

Inheritance

स्पष्ट कीजिए
Advertisements

उत्तर

  1. Inheritance is a feature of OOP where one class acquires the properties and methods of another class.
  2. The existing class is called the Base class (Parent class), and the new class is called the Derived class (Child class).
  3. It allows code reusability, as the child class can use the data and functions of the parent class.
  4. It helps in creating a hierarchical relationship between classes.
  5. Inheritance improves program organization and maintainability.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (July) Official Board Paper

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×