|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sourceforge.jemm.sample.demo1.model.Account
public class Account
| Field Summary | |
|---|---|
protected ShadowUserObject |
jemmOIF
|
| Constructor Summary | |
|---|---|
Account()
Create a new account with an initial balance of 0. |
|
Account(double initialBalance)
Create a new account with the given initial balance. |
|
Account(ShadowUserObject jemmOIF)
Generated by the compiler and used internally for creating an object. |
|
| Method Summary | |
|---|---|
void |
deposit(double amount)
Deposit the given about into the account, increasing the balance. |
double |
getBalance()
Returns the balance on the account. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ShadowUserObject jemmOIF
| Constructor Detail |
|---|
public Account()
public Account(ShadowUserObject jemmOIF)
jemmOIF - The shadow object this object uses to talk to the store.public Account(double initialBalance)
initialBalance - The initial account balance.| Method Detail |
|---|
public double getBalance()
public void deposit(double amount)
amount - The amount to deposit.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||