Question 137Asked in BPSC TRE 3.0 (2024) Computer Science Class 11-12

Inheritance in OOP allows a class to:

  1. AInherit properties and behavior from another class
  2. BCreate instances of another class
  3. COverride methods of another class
  4. DMore than one of the above
  5. 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

This is question 137 of BPSC TRE 3.0 (2024) Computer Science Class 11-12 — Previous Year Paper. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.