| Lecture 5 - Slide 23 : 40 |
Member access: 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