Vidyalelo
C++ Programming · Q22

Inheritance in C++

Programming · C++ Programming · question 22

Q22

In C++, which access specifier allows the members of a base class to be accessible in the derived class and its derived classes, but not from outside the class hierarchy?

A.
public
B.
private
C.
friend
D.
protected
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board