Lecture overview -- Keyboard shortcut: 'u'  Previous page: Properties in C# -- Keyboard shortcut: 'p'  Next page: Automatic Properties -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 8 : 29
Object-oriented Programming in C#
Data Access, Properties, and Methods
Properties: Class Point with polar coordinates

The example on this page is a typical, real-life illustration of the usefulness of properties.

A real life illustration of properties

/user/normark/oop-csharp-1/sources/c-sharp/point/point-representation-independence/version4a/Point.csClass Point with polar data representation. This program is explained

Both rectangular and polar access is provided via properties.

Go to exercisePoint setters
As a matter of notation, it is not possible to tell the difference between direct access of an instance variable and access via a property

Read more about this topic in the text book version of this material.