Commit 445ba9bf by Patryk Czarnik

enkapsulacja - zmiana tablicy na listę i wiek na date

parent 277bf1ce
......@@ -21,7 +21,7 @@ public class Osoba {
}
public String toString() {
return imie + " " + nazwisko + " (" + wiek + " lat)";
return imie + " " + nazwisko + " (ur. " + dataUrodzenia + ")";
}
public String getImie() {
......
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