Exemple #1
0
  public static void main(String[] args) {

    Konto Philipp = new Konto("Philipp Kropik", "AT173837700000065599", "RZSTAT2G");
    Konto Mayer = new Konto("Hans Mayer", "AT373837700000065599", "RZSTAT2G");

    Philipp.aufbuchen(50);
    Mayer.aufbuchen(40);

    Philipp.Kontodrucker();
    Mayer.Kontodrucker();
    Philipp.aufbuchen(50);
    Mayer.abbuchen(40);
    Philipp.Kontodrucker();
    Mayer.Kontodrucker();
  }
  public static void main(String[] args) {
    // TODO Auto-generated method stub

    Konto maxisKonto = new Konto("Max Musterman");

    maxisKonto.aufbuchen(1000);
    System.out.println(maxisKonto.getKontostand());
    maxisKonto.abbuchen(500);
    System.out.println(maxisKonto.getKontostand());
    maxisKonto.abbuchen(600);
    System.out.println(maxisKonto.getKontostand());
  }