|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectse.kth.leiflindback.distdb.db.Account
public class Account
This is the distributed data. The actual data is the balance of this bank account.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
Account()
|
|
| Method Summary | |
|---|---|
void |
addInterest(float percentage)
Deposits the interest to the account. |
void |
deposit(float amount)
Deposit the specified amount. |
float |
getBalance()
Returns the balance. |
void |
withdraw(float amount)
Withdraw the specified amount. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public Account()
| Method Detail |
|---|
public float getBalance()
public void withdraw(float amount)
amount - The amount to withdraw.public void deposit(float amount)
amount - The amount to deposit.public void addInterest(float percentage)
addInterest(3).
percentage - The interest percentage.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||