B 3.2.2 Worksheet Java Answers
Question: What will be the output of the Java code snippet above? Explain why each method is called. This code tests the difference between Method Overriding (Polymorphism) and Method Overloading. 1. animalSpeak(genericAnimal); 2. animalSpeak(myDog); 3. myDog.makeSound("loud");