Which concept of C++ is used to reuse the written code?
Show answerHide answer
Correct answer: (B) Inheritance
Explanation
Inheritance lets a derived class reuse the data and functions of an existing base class without rewriting them.
Correct answer: (B) Inheritance
Explanation
Inheritance lets a derived class reuse the data and functions of an existing base class without rewriting them.
This is question 102 of BPSC TRE 2.0 (2023) 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.