• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
Menu

Q&A Discussões

Cat c = new Cat (12); ....Meow(); how should the Meow method be called?
c#methods
-1 Voto
5 Respostas
23rd Nov 2016, 9:35 PM
Margarit
Margarit - avatar
[SOLVED] I don't see follow button
buttonfollowhelpmeow
1 Voto
4 Respostas
28th Jan 2021, 4:34 PM
MNMNMN
i dont get the code on the end what should make the pet giving both Meow and Woof especially for (int i=0; i<2; i++) {
polymorphism
0 Voto
2 Respostas
14th Jan 2019, 9:59 PM
Nuh Cetin
Nuh Cetin - avatar
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....
javapolymorphism
0 Voto
6 Respostas
21st Aug 2016, 5:08 AM
Amandeep Singh
Amandeep Singh - avatar
Quente hoje
Fast coding (mobile)
1 Votes
..
1 Votes
Beginner_to_SoloLearn
2 Votes
How to learn C++ and how long does it take
1 Votes
Coding help
2 Votes
DSA doubt
1 Votes
Bridge pattern use case
0 Votes
Hofstadter a sequence code coach is not running
0 Votes
Recover challenge history
0 Votes
Data structure using C
0 Votes