How do we make dounn program print both Grr and Meow?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do we make dounn program print both Grr and Meow??

I tried to make it like huon program. in his case inheritance topic is used https://code.sololearn.com/ctrZKr67LojR/?ref=app https://code.sololearn.com/cZn79b6E97CG/?ref=app

18th Aug 2018, 8:56 AM
Jinyoongisaranghe
Jinyoongisaranghe - avatar
2 Answers
0
Hi Jinyoongisaranghe, here is a solution to your question. Hope it helps👍 https://code.sololearn.com/c48W4tsR4dbq/?ref=app
18th Aug 2018, 9:52 AM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
0
Vincent Berger but how is huon executing without typing c.makesound and a.makesound. in that program huon he only declared the object but did not invoke the method.
18th Aug 2018, 11:04 AM
Jinyoongisaranghe
Jinyoongisaranghe - avatar