Which of the following is/are feature(s) of inheritance in OOPs? Features: i)…
2023
Which of the following is/are feature(s) of inheritance in OOPs? Features: i) Sub Class ii) Super Class iii) Reusability iv) Operator Overloading
- A.
iii only
- B.
i and ii only
- C.
ii and iii only
- D.
i, ii and iii only
Attempted by 219 students.
Show answer & explanation
Correct answer: D
Inheritance in Object-Oriented Programming (OOP) involves:
Sub Class → The derived class that inherits properties from another class.
Super Class → The base class whose properties are inherited.
Reusability → One of the main advantages/features of inheritance, as existing code can be reused.
Operator Overloading is a separate OOP concept and is not a feature of inheritance.
Therefore, the correct answer is i, ii and iii only.