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
Last Updated :
14 May, 2018
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...