|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Account is a simple interface that represents a bank account
| Method Summary | |
int |
balance()
Gets account balance. |
void |
deposit(int value)
Deposits an amount of money to the bank account. |
void |
withdraw(int value)
Withdraws an amount of money from the bank account. |
| Method Detail |
public int balance()
public void deposit(int value)
value - value representing the amount of moneypublic void withdraw(int value)
value - value representing the amount of money
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||