Question 137Asked in BPSC TRE 3.0 (2024) Computer Science Class 11-12
Inheritance in OOP allows a class to:
AInherit properties and behavior from another class
BCreate instances of another class
COverride methods of another class
DMore than one of the above
ENone of the above
Show answerHide answer
Correct answer: (A) Inherit properties and behavior from another class
Explanation
Inheritance lets a class acquire the properties (fields) and behaviour (methods) of another class. Overriding is a separate feature that inheritance makes possible.
From BPSC TRE 3.0 (2024) Computer Science Class 11-12 — Previous Year Paper