What is the term for creating a new class based on an existing class?
2025
What is the term for creating a new class based on an existing class?
- A.
Overriding
- B.
Implementing
- C.
Inheriting
- D.
Overloading
Attempted by 164 students.
Show answer & explanation
Correct answer: C
Inheritance is an OOP concept where a new class derives properties and behaviors from an existing class.
It enables code reuse, hierarchical classification, and extensibility, making it the correct term for creating a class based on another.