•BankAccount has several
methods:
•deposit (int amount) // line
47
–add amount to current balance,
changing value of balance field
•getBalance( ) // line 58
–tell whoever sent the message
how much money is in this account (value of balance field)
–balance does not change
–the empty parentheses tell us
this method needs no information from the sender to do its job
•