Open In App

UGC-NET | UGC NET CS 2015 Jun – II | Question 15

When the inheritance is private, the private methods in base class are __________ in the derived class (in C++).
(A) inaccessible
(B) accessible
(C) protected
(D) public

Answer: (A)
Explanation: When the inheritance is private, the private methods in base class are inaccessible in the derived class (in C++). For more information on inheritance Refer:Inheritance in C++
Option (A) is correct.
Quiz of this Question

Article Tags :