C++ Programmer Question:
Download Questions PDF

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.

Download C++ Programmer Interview Questions And Answers PDF

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