The protected access specifier grants access to the member to the class to which it belongs, as well as friends and derived classes. Protected members, on the other hand, cannot be accessed from outside the class.