net.sf.jso.examples.banking
Class Account
java.lang.Object
net.sf.jso.examples.banking.Account
- All Implemented Interfaces:
- Storable
- Direct Known Subclasses:
- SpecialAccount
- public class Account
- extends java.lang.Object
- implements Storable
Bank account
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Account
public Account()
Account
public Account(int aNumber,
Client aClient)
getClient
public Client getClient()
getNumber
public int getNumber()
getBalance
public int getBalance()
deposit
public int deposit(int amount)
validateBalance
protected void validateBalance(int amount)
withdraw
public int withdraw(int amount)
history
public java.util.List history()