What is the main purpose of inheritance in OOP?

Bihar STET · PGT (Paper 2) · Computer Science · 2025

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 481 students.

Show answer

Correct answer: C

The worked solution is available to enrolled students.

Explore the full course: Bihar Stet Paper Ii Computer Science

Loading lesson…