CheckingAccountpublic class CheckingAccount extends Account implements RemoteCheckingAccount
|A checking account represents a type of account against which
people may make overdrafts covered by other savings accounts they
hold. If they cannot cover an overdraft, then a withdrawal will fail.|
Constructs a new checking account.
|public synchronized void||withdraw(imaginary.persist.RemoteLockHolder h, float amount)|
Extends the Account withdraw method. Here, it checks to
see if the customer has enough money in the account. If they
do not have enough money to make the withdrawal, then it checks
the customers savings accounts in an attempt to cover. If the
savings accounts will cover the withdrawal, then the proper
amount is transfered to this account from those accounts
and the withdrawal succeeds. If not enough money can be
transfered to cover the withdrawal, it fails.