Commit a3f7c14f by Patryk Czarnik

Konto: this() w kontruktorze

parent f7856d9a
......@@ -14,9 +14,7 @@ public class Konto {
// można tworzyć więcej konstruktorów, które różnią się liczbą lub typem parametrów
// np. konstruktor tworzący konto z saldem zero:
Konto(int numer, Osoba wlasciciel) {
this.numer = numer;
this.saldo = 0;
this.wlasciciel = wlasciciel;
this(numer, 0, wlasciciel);
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment