Lecture overview -- Keyboard shortcut: 'u'  Previous page: Inheritance: Copying and slicing -- Keyboard shortcut: 'p'  Next page: Virtual Functions -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 4 - Page 4 : 24
Notes about C++
Abstraction Mechanisms, Part 2
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

  • The C++ Programming Language: Page 402, 849
 

  • 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