|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectKontoB
public class KontoB
Konto version B. Uses synchronized methods to display, add and remove money from the account, account cannot become negative.
| Field Summary | |
|---|---|
private double |
stand
|
| Constructor Summary | |
|---|---|
KontoB()
|
|
KontoB(double a)
|
|
| Method Summary | |
|---|---|
double |
getGeld(double b)
New account balance gets calculated and returned. |
double |
putGeld(double b)
Transfers amount to this account. |
double |
zeigeGeld()
Displays account balance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private double stand
| Constructor Detail |
|---|
public KontoB()
public KontoB(double a)
| Method Detail |
|---|
public double zeigeGeld()
zeigeGeld in interface Kontopublic double putGeld(double b)
putGeld in interface Kontob - amount to put on account.
public double getGeld(double b)
getGeld in interface Kontob - amount to remove from desired account.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||