What is the role of protected access specifier?
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.