Classes and Objects
- slide 15 : 29
belongs to the class, and it is shared among all instances of the class.
are declared by use of the
modifier in C#
may be used as
- associated with a given class
do typically hold
about the class, such as the number of instances
The class BankAccount with a class variable.
A client of class BankAccount.
Output of the BankAccount client program.
Sharing the Random Generator