Lecture 4 - Slide 38 : 40
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