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

java.lang.Object
  extended by org.sourceforge.jemm.sample.demo1.model.orig.Account
      extended by org.sourceforge.jemm.sample.demo1.model.orig.SavingsAccount

public class SavingsAccount
extends Account

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

Author:
Paul Keeble

Constructor Summary
SavingsAccount()
          Create a SavingsAccount with an initial balance of 0.
SavingsAccount(double initialBalance)
          Create a SavingsAccount with the given initial balance.
 
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.orig.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(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.