cscie160.hw6
Class TSAccount

java.lang.Object
  |
  +--cscie160.hw6.Account
        |
        +--cscie160.hw6.TSAccount

public class TSAccount
extends Account


Constructor Summary
TSAccount(float mInitialBalance)
          | Constructor.
 
Method Summary
 void deposit(float amount)
          | synchronized tread-safe deposit Deposits an $[amount] into this TSAccount The amount may not be negative, if so an exception is thrown.
 void withdraw(float amount)
          | synchronized tread-safe withdraw Withdraw $[amount] from this TSAccount.
 
Methods inherited from class cscie160.hw6.Account
getBalance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TSAccount

public TSAccount(float mInitialBalance)
| Constructor.

Method Detail

deposit

public void deposit(float amount)
             throws ATMException
| synchronized tread-safe deposit Deposits an $[amount] into this TSAccount The amount may not be negative, if so an exception is thrown.

Overrides:
deposit in class Account
ATMException

withdraw

public void withdraw(float amount)
              throws ATMException
| synchronized tread-safe withdraw Withdraw $[amount] from this TSAccount. The amount may not exceed the balance in the TSAccount, if it does, then an exception is thrown.

Overrides:
withdraw in class Account
ATMException