Examveda

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

A. public

B. private

C. friend

D. protected

Answer: Option D


Join The Discussion

Related Questions on Inheritance in C plus plus