|
|
Instance Methods | An instance method is always activated on an object. An instance method can
can access instance variables as well as class variables. |
|
|
In this version of class BankAccount we have emphasized five instance methods. |
The activation
of the methods represent messages from Main to individual
bank account objects. |
A version of class BankAccount with transaction logging. This version of the class
is the basis for the exercise below. |
|
|
Read more about instance methods in the text book version of this material. |