Question 96Asked in BPSC TRE 2.0 (2023) Computer Class 9-10

Which of the following can be considered as the members that can be inherited but not accessible in any class?

  1. APublic
  2. BProtected
  3. CPrivate
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (C) Private

Explanation

Private members are inherited by a derived class but cannot be accessed directly from it.

From BPSC TRE 2.0 (2023) Computer Class 9-10 — Previous Year Paper

This is question 96 of BPSC TRE 2.0 (2023) Computer Class 9-10 — 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.