Open In App

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

Like Article
Like
Save
Share
Report

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
Previous
Next
Share your thoughts in the comments
Similar Reads