Dyskusje Q&A
Cat < dog
3 głosów
8 odpowiedziCode for Cat LOVERS!
7 głosów
12 odpowiedziwho is that cat
3 głosów
5 odpowiedziCat c=new cat(); c.cat;
0 głosów
2 odpowiedziclasse 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 głosów
6 odpowiedziPopularne dzisiaj
Ai generated practices
2 Votes
Solving coding challenges
0 Votes
Feedback on my portfolio
0 Votes
Yo this is madness
0 Votes
Advertising in Sololearn
0 Votes
How can i insert files?
1 Votes
Hi who can hel me please
0 Votes
I am new
0 Votes