C++ Programmer Question:
Explain what is the role of protected access specifier?

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 Question | Next Question |
Please explain what is a reference variable in C++? | Tell me what is this pointer? |