Lecture overview -- Keyboard shortcut: 'u'  Previous page: Friends - Class Point - implicit conversion -- Keyboard shortcut: 'p'  Next page: Operator overloading -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    Abstraction Mechanisms, Part 1 - slide 34 : 36

Discussion - Encapsulation, Visibility and Access

Is access control really important in OOP?

Is it really necesary to introduce yet another mechanism, such as friends, to deal with access control?

In C# it is possible to access a private instance variable thorugh a public property of (more or less) the same name. Is this related to our discussion of access control (and to friends)?

Go to exercise
Discuss encapsulation, visibility and access