Does it work?? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Does it work??

Just as : Animal a=new Animal(); ((Cat)a).makesound(); Does it work??

9th Aug 2016, 12:48 AM
solsir
1 Resposta
0
set animal as variable, ok, then u have sound method... you need a sound for it to play because computers dont know what animal sounds are... but it looks like a good code, try it maybe its bound to do something.
9th Aug 2016, 2:32 AM
Aquarius
Aquarius - avatar