Q&A Discussions
classe animal has makesound function i.e grr..... nd classes cat and dog also have makesound function i.e meow nd woof respectively... due to inheritance classes cat and dog also have makesound function of animal class ie grr.... now my q is how compiler will know which function to execute is nt ds ambiguous??... two choices r dere....
1 make sound function of animal class ie grr
2 make sound function of own like woof or meow.... any help would be really helpful....
0 Votes
6 AnswersHot today
Why my code is not working?
1 Votes
Added games in my codes
2 Votes
Beginner
0 Votes
bro i very lonely
1 Votes
What's wrong in my code?
0 Votes
Function chaining and data loss
0 Votes
Help!
0 Votes
Node.js in the code coach
1 Votes
Please reply
0 Votes
I am a begginer in sololearn
0 Votes