Cat c = new Cat (12); ....Meow(); how should the Meow method be called? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Cat c = new Cat (12); ....Meow(); how should the Meow method be called?

23rd Nov 2016, 9:35 PM
Margarit
Margarit - avatar
4 Answers
+ 1
c.Meow();
29th Nov 2016, 12:02 PM
Anton
0
may be Meow() in the Cat class or a Base class that are inherited by Cat class. simply call the method by using object of class . methodName();
24th Nov 2016, 4:51 PM
Rakesh Yadav
Rakesh Yadav - avatar
0
[ ] a = double[ ];
12th Sep 2019, 4:01 AM
BHARAT GALCHAR
BHARAT GALCHAR - avatar
- 3
Cat. Meow
24th Nov 2016, 3:06 PM
joffie
joffie - avatar