Lecture overview -- Keyboard shortcut: 'u'  Previous page: Program modification - the Fire Analogy -- Keyboard shortcut: 'p'  Next page: Classes in C# -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Classes and Objects - slide 10 : 29

Representation Independence
Representation independence: Clients of the class C should not be affected by changes of C's data representation
Point.cs
A Point class with public instance variables - NOT Recommended .
Client.cs
A Client of Point.
Point.cs
A version of class Point modified to use polar coordinates - NOT Recommended.
Go to exercise
Public data representation
Encapsulated data should always be hidden and private within the class