Question: what is the right answer ,in java , full explanation please , thank you a) x b) z c) xyz d) zyx 8) If you
a) x b) z c) xyz d) zyx 8) If you have a parent class Animal that has a method speak() which returns: Awk. Cat has a speak method that returns: Meow. Bird does not have a speak method. Dog has a speak method that returns: Woof. Fish does not have a speak method. Cow has a speak method that returns: Moo. What is the output from looping through the array a created below and asking each element to speak()? Animal [] a ={ new Cat(), new Cow(), new Dog(), new Fis new Bird()} a) Meow Moo Woof Awk Awk b) Awk Awk Awk Awk Awk c) This will not compile d) This will have runtime errors e) Meow Moo Woof Glug Awk
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
