|
||||||||||
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
public class Account
An Account held by a Person.
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. |
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 |
Constructor Detail |
---|
public Account()
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 |