Given the block of code below, answer the following question: ```java class Animal { // constructor not shown } class Dog extends Animal { // constructor not shown public void makeSound() { System.out.println("Woof! Woof!"); } } ``` Question: Consider the code above. If we create an object of the `Dog` class and call the `makeSound()` method on that object, what will be outputted?




© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.