|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cscie160.hw6.Account
Constructor Summary | |
Account(float mInitialBalance)
| Constructor. |
Method Summary | |
void |
deposit(float amount)
| Deposits an $[amount] into this account The amount may not be negative, if so an exception is thrown. |
float |
getBalance()
| Accessors. |
void |
withdraw(float amount)
| Withdraw $[amount] from this account. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Account(float mInitialBalance)
Method Detail |
public void deposit(float amount) throws ATMException
ATMException
public void withdraw(float amount) throws ATMException
ATMException
public float getBalance() throws ATMException
ATMException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |