Advertisement
Guest User

Kontobewegung

a guest
Sep 24th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1.  
  2. public class Kontobewegung {
  3.  
  4. private double wert;
  5. private String datum;
  6. private double kontostand;
  7. private Konto konto;
  8.  
  9. public Kontobewegung (Konto kontoVon, Konto kontoNach, String datum, double wert) {
  10. this.konto = kontoVon;
  11. this.konto = kontoNach;
  12. this.wert = wert;
  13. }
  14.  
  15. public void überweisung (Konto kontoVon, Konto kontoNach, double wert) {
  16. kontoVon.setKontostand(kontoVon.getKontostand()-wert);
  17. kontoNach.setKontostand(kontoNach.getKontostand()+wert);
  18. }
  19.  
  20. public void Lastschrift(Konto)
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement