Access Specifiers
You learned from the Access Specifiers chapter that there are three specifiers available in C++. Until now, we have only used public
(members of a class are accessible from outside the class) and private
(members can only be accessed within the class). The third specifier, protected
, is similar to private
, but it can also be accessed in the inherited class: Continue reading C++ Inheritance Access