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
Activities on sololearn
4 Votes
Html issue
2 Votes
Can you help me ?
1 Votes
Code coach
0 Votes
How I can use div
1 Votes
TIPS From Veterans
3 Votes
App development 🔥☝️
1 Votes
Playground input
1 Votes
What am I doing wring?
1 Votes