C++ Programmer Question:

Explain what is the role of protected access specifier?

Tweet Share WhatsApp

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.

Read All 59 C++ Programmer Questions
Previous QuestionNext Question
Please explain what is a reference variable in C++?Tell me what is this pointer?