English

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

Advertisements
Advertisements

Question

Explain the following concept related to the object oriented programming:

Inheritance

Explain
Advertisements

Solution

  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
  Is there an error in this question or solution?
2024-2025 (July) Official Board Paper

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×