net.sf.jso.examples.banking
Class SpecialAccount

java.lang.Object
  extended bynet.sf.jso.examples.banking.Account
      extended bynet.sf.jso.examples.banking.SpecialAccount
All Implemented Interfaces:
Storable

public class SpecialAccount
extends Account

When using special accounts clients are granted some credit.


Constructor Summary
SpecialAccount()
           
SpecialAccount(int aNumber, Client aClient, int amount)
           
 
Method Summary
 int getCreditAmount()
           
protected  void validateBalance(int amount)
           
 
Methods inherited from class net.sf.jso.examples.banking.Account
deposit, getBalance, getClient, getNumber, history, withdraw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecialAccount

public SpecialAccount()

SpecialAccount

public SpecialAccount(int aNumber,
                      Client aClient,
                      int amount)
Method Detail

getCreditAmount

public int getCreditAmount()

validateBalance

protected void validateBalance(int amount)
Overrides:
validateBalance in class Account