C++ Programmer Question:

Explain what is the role of protected access specifier?

C++ Programmer Interview Question
C++ Programmer Interview Question

Answer:

If a class member is protected then it is accessible in the inherited class. However, outside the both the private and protected members are not accessible.


Previous QuestionNext Question
Please explain what is a reference variable in C++?Tell me what is this pointer?