Given the block of code below, answer the following question: ```java class Person { // constructor not shown public void printGreeting() { System.out.println("Hello! How are you?"); } } class Student extends Person { // constructor not shown } ``` Question: Consider the code above. If we create an object of the `Student` class and call the `printGreeting()` 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.