Consider the code below. If we create an object of the Child class and call the `printMessage()` method on that object, what will happen? ```java class Parent { void printMessage() { System.out.println("Hello from Parent"); } } class Child extends Parent { void printMessage() { printMessage(); System.out.println("Hello from Child"); } } ```




© 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.