Lecture overview -- Keyboard shortcut: 'u'  Previous page: Overview of members in classes -- Keyboard shortcut: 'p'  Next page: Instance 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 13 : 29

Instance Variables

An instance variable defines a piece of data in the class. Each object, created as an instance of the class, holds a separate copy of the instance variables.

Instance variables in the class BankAccount.
Creation of three bank accounts.
Output from the BankAccount client program.
Go to exercise
How private are private instance variables?