Classes and Objects
- slide 16 : 29
is associated with the class itself, as opposed to an object of the class
A class method
in a class
is declared by use of the
modifier in C#
can only access static members of the class
must be activated on the class as such
is activated as
can also be activated as
from inside C
A BankAccount class with static methods.
A client BankAccount.
Output from the BankAccount client program.
A typical problem: A class method that accesses instance variables.