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.
if you want to learn something teach it
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.