|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectKontoA
public class KontoA
Konto version A. Uses synchronized methods to display, add and remove money from the account.
Field Summary | |
---|---|
private double |
stand
|
Constructor Summary | |
---|---|
KontoA()
|
|
KontoA(double a)
|
Method Summary | |
---|---|
double |
getGeld(double b)
getGeld. |
double |
putGeld(double b)
putGeld. |
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 KontoA()
public KontoA(double a)
Method Detail |
---|
public double zeigeGeld()
zeigeGeld
in interface Konto
public double putGeld(double b)
Konto
putGeld
in interface Konto
b
- adds desired value to current account.
public double getGeld(double b)
Konto
getGeld
in interface Konto
b
- draws desired value from the account.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |