Does it work?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Does it work??

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

9th Aug 2016, 12:48 AM
solsir
1 Answer
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