Zadania z polimorfizmem
Komentarze (3)
- Popularne
- Najnowsze
- Najstarsze
Musisz się zalogować, aby dodać komentarz
Bartosz Dąbrowski
11 stycznia 2023, 00:09
W zadaniu "Czy to ptak, czy to lampa", wystarczy aby metoda wypisała w każdej linii nazwę klasy, dla przekazywanego jako argument obiektu.
0
Pighost
1 września 2020, 18:27
In the last task there is problem with veryfication. When u return "Pig" it takes it as mistake - even if there is class Pig in the code. Compiler accepts answer if there is no instanceof Pig in code.
0
J K
18 lutego 2021, 15:15
It is written in task Conditions to return "Cow", "Whale", "Dog", for Pig you should return "Unknow Animal"
+1