What is the main purpose of inheritance in OOP?

PYQ Bihar STET 2025PYQ Bihar STET 2024PYQ Bihar 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 1419 students.

Sign up free to check your answer

Sign up free

Explore the full course: Bihar Stet Computer Science Complete Course

Loading lesson…