Fiveable
Fiveable

Given the block of code below, answer the following question: ```java class Vehicle { // constructor not shown public void startEngine() { System.out.println("Vrooom!"); } } class Car extends Vehicle { // constructor not shown public void reverse() { System.out.println("Beep! Beep!"); } } ``` Question: Consider the code above. If we create an object of the `Car` class and call the `startEngine()` 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.