+ 17

Why output is "Animal::Dog" ? Зашто је аутпут " Animal::Dog". ?

https://code.sololearn.com/cXkLcx8Kzpj6/?ref=app

1st Feb 2018, 11:47 PM
Vučko/Вучко/Vuchko
Vučko/Вучко/Vuchko - avatar
3 Answers
+ 17
Thanks Vukan and Daniel Fernadez Hidalgo Хвала Vukane i Daniel Fernández Hidalgo
2nd Feb 2018, 3:43 PM
Vučko/Вучко/Vuchko
Vučko/Вучко/Vuchko - avatar
2nd Feb 2018, 12:08 AM
Vukan
Vukan - avatar
+ 6
nisi nigde preklopio to_s metodu, tako da po default-u ispisuje prvo ime nadredjene klase pa zatim izvedene klase
2nd Feb 2018, 12:08 AM
Vukan
Vukan - avatar