What is the role of protected access specifier?

Trainee Asked on August 15, 2019 in C++ Language.
Add Comment
1 Answer(s)

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.

Supporter Answered on August 15, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.