Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Kontobewegung {
- private double wert;
- private String datum;
- private double kontostand;
- private Konto konto;
- public Kontobewegung (Konto kontoVon, Konto kontoNach, String datum, double wert) {
- this.konto = kontoVon;
- this.konto = kontoNach;
- this.wert = wert;
- }
- public void überweisung (Konto kontoVon, Konto kontoNach, double wert) {
- kontoVon.setKontostand(kontoVon.getKontostand()-wert);
- kontoNach.setKontostand(kontoNach.getKontostand()+wert);
- }
- public void Lastschrift(Konto)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement