|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sourceforge.jemm.sample.demo1.model.Account org.sourceforge.jemm.sample.demo1.model.SavingsAccount
public class SavingsAccount
A Savings account owned by Person (extension of basic Account to include interest handling.).
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 |
---|
public SavingsAccount()
public SavingsAccount(ShadowUserObject jemmOIF)
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 |