|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceforge.jemm.sample.demo1.model.orig.Account
org.sourceforge.jemm.sample.demo1.model.orig.SavingsAccount
public class SavingsAccount
A Savings account owned by Person (extension of basic Account to include interest handling.).
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 |
---|
public SavingsAccount()
public SavingsAccount(double initialBalance)
initialBalance
- The account initial balance.Method Detail |
---|
public void addInterest(double interestRate)
interestRate
- The yearly interest rate to add.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |