in C Plus Plus by

What is the role of protected access specifier?

1 Answer

0 votes
by

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.

...