Question: Question 2 3 ( 1 point ) What is output? public class Vehicle { protected String vehicleName; public void setName ( String name ) {
Question point
What is output?
public class Vehicle
protected String vehicleName;
public void setNameString name
vehicleName name;
public class Boat extends Vehicle
private int numEngines;
Boat fastBoat new Boat;
fastBoat.setNameFirebird;
System.out.printlnfastBoat;
Question options:
Firebird
Boat@fab
Vehicle@fab
Syntax error
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
