Lecture overview -- Keyboard shortcut: 'u'  Previous page: Instance Methods -- Keyboard shortcut: 'p'  Next page: Class Methods -- 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 15 : 29

Class Variables

A class variable belongs to the class, and it is shared among all instances of the class.

bank-account.cs
The class BankAccount with a class variable.
bank-account-client.cs
A client of class BankAccount.
output
Output of the BankAccount client program.
Go to exercise
Sharing the Random Generator