Class KontoS

java.lang.Object
  extended by KontoS
All Implemented Interfaces:
java.io.Serializable, Konto

public class KontoS
extends java.lang.Object
implements Konto, java.io.Serializable

Konto version S. This class is serializable. Uses synchronized methods to display, add and remove money from the account.

Author:
Heinz Kredel.
See Also:
Serialized Form

Field Summary
private  double stand
           
 
Constructor Summary
KontoS()
           
KontoS(double a)
           
 
Method Summary
 double getGeld(double b)
          getGeld.
 double putGeld(double b)
          putGeld.
 double zeigeGeld()
          zeigeGeld.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stand

private double stand
Constructor Detail

KontoS

public KontoS()

KontoS

public KontoS(double a)
Method Detail

zeigeGeld

public double zeigeGeld()
Description copied from interface: Konto
zeigeGeld.

Specified by:
zeigeGeld in interface Konto
Returns:
stand.

putGeld

public double putGeld(double b)
Description copied from interface: Konto
putGeld.

Specified by:
putGeld in interface Konto
Parameters:
b - amount to put on account.
Returns:
s current account balance.

getGeld

public double getGeld(double b)
Description copied from interface: Konto
getGeld.

Specified by:
getGeld in interface Konto
Parameters:
b - A Double, amount to get from account.
Returns:
s A Double, returns actual balance.