What is the main purpose of inheritance in OOP?

Bihar STET 2025Bihar STET 2024Bihar STET 2023

What is the main purpose of inheritance in OOP?

  1. A.

    To create instances of classes

  2. B.

    To prevent data abstraction

  3. C.

    To establish a parent-child relationship between classes

  4. D.

    To define exceptions

Attempted by 1402 students.

Sign up free to check your answer

Sign up free

Explore the full course: Bpsc

Loading lesson…