Skip to content
Related Articles

Related Articles

Improve Article

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

  • Last Updated : 14 May, 2018

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :