Lecture 3
Message invoking a method
this.process…For…( account)
process…For…( BankAccount account)
{
loop until user types “exit”
do what user asks
}
account
is the account1 or the account2 field of the Bank
execution
flow: line 63 in Bank.java sends a process… message
to itself, telling it which account to work with. The method
process… runs, then work resumes at line 70 in Bank.java
