org.sourceforge.jemm.sample.demo1.model
Class SavingsAccount

java.lang.Object
  extended by org.sourceforge.jemm.sample.demo1.model.Account
      extended by org.sourceforge.jemm.sample.demo1.model.SavingsAccount
All Implemented Interfaces:
JEMMObject

public class SavingsAccount
extends Account

A Savings account owned by Person (extension of basic Account to include interest handling.).

Author:
Paul Keeble

Field Summary
 
Fields inherited from class org.sourceforge.jemm.sample.demo1.model.Account
jemmOIF
 
Constructor Summary
SavingsAccount()
          Create a SavingsAccount with an initial balance of 0.
SavingsAccount(double initialBalance)
          Create a SavingsAccount with the given initial balance.
SavingsAccount(ShadowUserObject jemmOIF)
           
 
Method Summary
 void addInterest(double interestRate)
          Add yearly interest to the account using the given interest rate.
 
Methods inherited from class org.sourceforge.jemm.sample.demo1.model.Account
deposit, getBalance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SavingsAccount

public SavingsAccount()
Create a SavingsAccount with an initial balance of 0.


SavingsAccount

public SavingsAccount(ShadowUserObject jemmOIF)

SavingsAccount

public SavingsAccount(double initialBalance)
Create a SavingsAccount with the given initial balance.

Parameters:
initialBalance - The account initial balance.
Method Detail

addInterest

public void addInterest(double interestRate)
Add yearly interest to the account using the given interest rate.

Parameters:
interestRate - The yearly interest rate to add.


Copyright © 2009. All Rights Reserved.