Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobierenF&A Diskussionen
Cat API
5 Stimmen
37 AntwortenCat < dog
3 Stimmen
8 AntwortenCode for Cat LOVERS!
7 Stimmen
12 Antwortenwho is that cat
3 Stimmen
5 AntwortenCat c=new cat(); c.cat;
0 Stimmen
2 Antwortenwrite in languge c cat utility
0 Stimmen
1 AntwortWhat is C A T ANY WAAY
1 Stimme
5 Antwortenclasse 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 Stimmen
6 Antworten