What is the role of protected access specifier????

If a class members is protected then it is accessible in the inherited class however outside the both the private and protected members are not accessible.

Leave a Reply

Your email address will not be published. Required fields are marked *