Question 38Asked in UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)

When the inheritance is private, the private methods in base class are _______ in the derived class (in C++).

  1. AInaccessible
  2. BAccessible
  3. CProtected
  4. DPublic
Show answerHide answer

Correct answer: (A) Inaccessible

Explanation

Inaccessible in the derived class, only public or protected members are inherited So answer is (a)

From UGC NET Computer Science PYQ, June 2015 (Paper II & III, Selected Questions)

This is question 38 of UGC NET Computer Science PYQ, June 2015 (Paper II & III, Selected Questions). 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.