Given the following code: ``` class A { public static void show() { System.out.print("A"); } } class B extends A { public static void show() { System.out.print("B"); } } class C extends B { public static void show() { System.out.print("C"); } } ``` What will be the output when the following code is executed? ``` A obj1 = new C(); B obj2 = new C(); C obj3 = new C(); obj1.show(); obj2.show(); obj3.show(); ```




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