Lecture overview -- Keyboard shortcut: 'u'  Previous page: Concrete classes -- Keyboard shortcut: 'p'  Next page: Friends -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 3 - Page 27 : 36
Notes about C++
Abstraction Mechanisms, Part 1
Visibility and Access Control

C++ supports the well-known distictions of private, protected and public members

  • Access control in C++

    • Visibility is associated with regions of declarations in the class, not the individual members

    • Classes and structs have different default visibility rules

    • Access rights to private members can be delegated to other parts of a C++ program by use of friends

C++ is similar to most other object-oriented programming languages with respect handling of visibility

With one notable exception, friends, which will be discussed next