Commit 910a50c5 by Patryk Czarnik

Klasa Konto początek

parent 56cc5383
package p10_klasy.v3;
public class Konto {
int numer;
int saldo;
Osoba wlasciciel;
Konto(int numer, int saldo, Osoba wlasciciel) {
this.numer = numer;
this.saldo = saldo;
this.wlasciciel = wlasciciel;
}
// 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;
}
}
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