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?
- A.
To create instances of classes
- B.
To prevent data abstraction
- C.
To establish a parent-child relationship between classes
- D.
To define exceptions
Attempted by 481 students.
Show answer
Correct answer: C
Explore the full course: Bihar Stet Paper Ii Computer Science
Loading lesson…