|Properties in C#|
Properties introduce getter and setter methods in C# - in a very convenient way. You can think of a property as a method. It is important to realize, however, that you cannot tell the difference between an activation of a property and use of a variable. An activation of a method M reveal itself by the required parentheses after M: M(...).
Properties allow indirect getting and setting of instance variables
We introduce properties by a number of examples.
On this page we provide a number of introductory examples of a Balance property of class BankAccount.
Read more about this topic in the text book version of this material.