public class Vehicle{
private String name; public double speed;
public String getName(){ return this.name; }
public Vehicle(String name){ this.name = name; this.speed = 1.0; }
public double move(double distance){ System.out.println("Moving"); return distance / this.speed; }
public String describe(){ return ""; }
}


public class Vehicle{
private String name; public double speed;
public String getName(){ return this.name; }
public Vehicle(String name){ this.name = name; this.speed = 1.0; }
public double move(double distance){ System.out.println("Moving"); return distance / this.speed; }
public String describe(){ return ""; }
}

public class Vehicle{
private String name; public double speed;
public String getName(){ return this.name; }
public Vehicle(String name){ this.name = name; this.speed = 1.0; }
public double move(double distance){ System.out.println("Moving"); return distance / this.speed; }
public String describe(){ return ""; }
}


public class Airplane extends Vehicle{
private double wingspan; private int capacity;
public Airplane(String name, double wingspan, int capacity){ this.name = name; this.wingspan = wingspan; this.capacity = capacity; } }


public class Airplane extends Vehicle{
private double wingspan; private int capacity;
public Airplane(String name, double wingspan, int capacity){ this.name = name; this.wingspan = wingspan; this.capacity = capacity; } }

public class Vehicle{
private String name; public double speed;
public String getName(){ return this.name; }
public Vehicle(String name){ this.name = name; this.speed = 1.0; }
public double move(double distance){ System.out.println("Moving"); return distance / this.speed; }
public String describe(){ return ""; }
}


public class Airplane extends Vehicle{
private double wingspan; private int capacity;
public Airplane(String name, double wingspan, int capacity){ this.name = name; this.wingspan = wingspan; this.capacity = capacity; } }


public class Airplane extends Vehicle{
private double wingspan; private int capacity;
public Airplane(String name, double wingspan, int capacity){ super(name); this.wingspan = wingspan; this.capacity = capacity; } }

public class Airplane extends Vehicle{
private double wingspan; private int capacity;
public Airplane(String name, double wingspan, int capacity){ this.wingspan = wingspan; super(name); this.capacity = capacity; } }


public class Airplane extends Vehicle{
private double wingspan; private int capacity;
public Airplane(String name, double wingspan, int capacity){ this.wingspan = wingspan; super(name); this.capacity = capacity; } }


public class Airplane extends Vehicle{
private double wingspan; private int capacity;
public Airplane(String name, double wingspan, int capacity){ super(name); this.wingspan = wingspan; this.capacity = capacity; } }


public class Airplane extends Vehicle{
private double wingspan; private int capacity;
public Airplane(String name, double wingspan, int capacity){ super(name); this.wingspan = wingspan; this.capacity = capacity; } }

public class Airplane extends Vehicle{
private double wingspan; private int capacity;
public Airplane(String name, double wingspan, int capacity){ super(name); this.wingspan = wingspan; this.capacity = capacity; }
public void landing_gear(boolean set){ if(set){ System.out.println("Landing gear down"); }else{ System.out.println("Landing gear up"); } } }

public class Airplane extends Vehicle{
private double wingspan; private int capacity;
public Airplane(String name, double wingspan, int capacity){ super(name); this.wingspan = wingspan; this.capacity = capacity; }
public void landing_gear(boolean set){ if(set){ System.out.println("Landing gear down"); }else{ System.out.println("Landing gear up"); } }
@Override public double move(double distance){ this.landing_gear(false); System.out.println("Moving"); this.landing_gear(true); return distance / this.speed; } }

public class Airplane extends Vehicle{
private double wingspan; private int capacity;
public Airplane(String name, double wingspan, int capacity){ super(name); this.wingspan = wingspan; this.capacity = capacity; }
public void landing_gear(boolean set){ if(set){ System.out.println("Landing gear down"); }else{ System.out.println("Landing gear up"); } }
@Override public double move(double distance){ this.landing_gear(false); System.out.println("Moving"); this.landing_gear(true); return distance / this.speed; } }


public class Airplane extends Vehicle{
private double wingspan; private int capacity;
public Airplane(String name, double wingspan, int capacity){ super(name); this.wingspan = wingspan; this.capacity = capacity; }
public void landing_gear(boolean set){ if(set){ System.out.println("Landing gear down"); }else{ System.out.println("Landing gear up"); } }
@Override public double move(double distance){ this.landing_gear(false); System.out.println("Moving"); this.landing_gear(true); return distance / this.speed; } }

public class Airplane extends Vehicle{
private double wingspan; private int capacity;
public Airplane(String name, double wingspan, int capacity){ super(name); this.wingspan = wingspan; this.capacity = capacity; }
public void landing_gear(boolean set){ if(set){ System.out.println("Landing gear down"); }else{ System.out.println("Landing gear up"); } }
@Override public double move(double distance){ this.landing_gear(false); System.out.println("Moving"); this.landing_gear(true); return distance / this.speed; }
@Override public String describe(){ return String.format("I am an airplane with a wingspan of %f and capacity %d", this.wingspan, this.capacity); } }

public class Airplane extends Vehicle{
private double wingspan; private int capacity;
public Airplane(String name, double wingspan, int capacity){ super(name); this.wingspan = wingspan; this.capacity = capacity; }
public void landing_gear(boolean set){ if(set){ System.out.println("Landing gear down"); }else{ System.out.println("Landing gear up"); } }
@Override public double move(double distance){ this.landing_gear(false); System.out.println("Moving"); this.landing_gear(true); return distance / this.speed; }
@Override public String describe(){ return String.format("I am an airplane with a wingspan of %f and capacity %d", this.wingspan, this.capacity); } }

public class Main{
public static void main(String[] args){ Vehicle vehicle = new Vehicle("Boat"); Airplane airplane = new Airplane("Plane", 175, 53); System.out.println(vehicle.move(10)); System.out.println(airplane.move(10)); System.out.println(vehicle.describe()); System.out.println(airplane.describe()); } }



public class Main{
public static void main(String[] args){ Vehicle vehicle = new Vehicle("Boat"); Airplane airplane = new Airplane("Plane", 175, 53); System.out.println(vehicle.move(10)); System.out.println(airplane.move(10)); System.out.println(vehicle.describe()); System.out.println(airplane.describe()); } }
Moving
10.0
Landing gear up
Moving
Landing gear down
10.0
I am an airplane with a wingspan of 175.000000 and capacity 53

public class Main{
public static void main(String[] args){ Vehicle vehicle = new Vehicle("Boat"); Airplane airplane = new Airplane("Plane", 175, 53); System.out.println(vehicle.move(10)); System.out.println(airplane.move(10)); System.out.println(vehicle.describe()); System.out.println(airplane.describe()); } }
Moving
10.0
Landing gear up
Moving
Landing gear down
10.0
I am an airplane with a wingspan of 175.000000 and capacity 53

public class Main{
public static void main(String[] args){ Vehicle vehicle = new Vehicle("Boat"); Airplane airplane = new Airplane("Plane", 175, 53); System.out.println(vehicle.move(10)); System.out.println(airplane.move(10)); System.out.println(vehicle.describe()); System.out.println(airplane.describe()); } }
Moving
10.0
Landing gear up
Moving
Landing gear down
10.0
I am an airplane with a wingspan of 175.000000 and capacity 53

public class Main{
public static void main(String[] args){ Vehicle vehicle = new Vehicle("Boat"); Airplane airplane = new Airplane("Plane", 175, 53); System.out.println(vehicle.move(10)); System.out.println(airplane.move(10)); System.out.println(vehicle.describe()); System.out.println(airplane.describe()); } }
Moving
10.0
Landing gear up
Moving
Landing gear down
10.0
I am an airplane with a wingspan of 175.000000 and capacity 53

public class Main{
public static void main(String[] args){ Vehicle vehicle = new Vehicle("Boat"); Airplane airplane = new Airplane("Plane", 175, 53); System.out.println(vehicle.move(10)); System.out.println(airplane.move(10)); System.out.println(vehicle.describe()); System.out.println(airplane.describe()); } }
Moving
10.0
Landing gear up
Moving
Landing gear down
10.0
I am an airplane with a wingspan of 175.000000 and capacity 53

public class Main{
public static void main(String[] args){ Vehicle vehicle = new Vehicle("Boat"); Airplane airplane = new Airplane("Plane", 175, 53); System.out.println(vehicle.move(10)); System.out.println(airplane.move(10)); System.out.println(vehicle.describe()); System.out.println(airplane.describe()); } }
Moving
10.0
Landing gear up
Moving
Landing gear down
10.0
 
I am an airplane with a wingspan of 175.000000 and capacity 53

public class Main{
public static void main(String[] args){ Vehicle vehicle = new Vehicle("Boat"); Airplane airplane = new Airplane("Plane", 175, 53); System.out.println(vehicle.move(10)); System.out.println(airplane.move(10)); System.out.println(vehicle.describe()); System.out.println(airplane.describe()); } }
Moving
10.0
Landing gear up
Moving
Landing gear down
10.0
I am an airplane with a wingspan of 175.000000 and capacity 53

public class Main{
public static void main(String[] args){ Vehicle vehicle = new Vehicle("Boat"); Airplane airplane = new Airplane("Plane", 175, 53); System.out.println(vehicle.move(10)); System.out.println(airplane.move(10)); System.out.println(vehicle.describe()); System.out.println(airplane.describe()); } }
Moving
10.0
Landing gear up
Moving
Landing gear down
10.0
I am an airplane with a wingspan of 175.000000 and capacity 53


public class MotorVehicle extends Vehicle{
public int number_of_wheels; public double engine_volume;
public MotorVehicle(String name){ super(name); this.number_of_wheels = 2; this.engine_volume = 125; }
public String honk_horn(){ return ""; } }