Commit 31924a9d by Patryk Czarnik

toString - zmiany

parent 5bdd7ad6
...@@ -68,4 +68,9 @@ public class Osoba { ...@@ -68,4 +68,9 @@ public class Osoba {
return liczbaObiektow; return liczbaObiektow;
} }
@Override
public String toString() {
return imie + " " + nazwisko + " (" + wiek + " lat)";
}
} }
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