| | Abstraction Mechanisms, Part 2 - slide 4 : 24 |
Member access control: private, public and protected
The use of private, public, and protected access control in C++ to members is similar to the access control in other object-oriented languages
- Observations
- Access control is applied uniformly to names
- Functions
- Variables
- Types
- And others
- private/public/protected are NOT used as modifiers of individual members
- Access control via private/public/protected can be augmented with use of friends