Table of Member Access Privileges

C++ Specific —>

Access in Base Class Base Class Inherited as Access in
Derived Class
Public
Protected
Private
Public Public
Protected
No access1
Public
Protected
Private
Protected Protected
Protected
No access1
Public
Protected
Private
Private Private
Private
No access1

1 Unless friend declarations within the base class explicitly grant access.

END C++ Specific