Question: Given the following program: public interface Flyer { public void fly ( ) ; } public class Plane implements Flyer { @Override public void fly
Given the following program:
public interface Flyer
public void fly;
public class Plane implements Flyer
@Override
public void fly
System.out.printlnCruising at ft;
public class Seagull implements Flyer
@Override
public void fly
System.out.printlnSoaring with the wind...";
public class Launcher
public void launchFlyer flyer
System.out.printlnGo fly, oh flyer!";
flyer.fly;
public void refuelPlane plane
System.out.printlnRefueling the plane...";
public class FlyerApp
public static void mainString args
Launcher launcher new Launcher;
Flyer plane new Plane;
Flyer seagull new Seagull;
launcher.launchplane; A
launcher.launchseagull; B
launcher.refuelplane; C
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
