Member access determines if a class member is accessible in an expression or declaration. Note that accessibility and visibility are independent. Visibility is based on the scoping rules of C++. A class member can be visible and inaccessible at the same time. This section describes how you control the access to the individual nonderived class members by using access specifiers when you declare class members in a member list.
Access Declarations
Inherited Member Access
Class Member Lists
Classes and Access Control
Access Specifiers