public class Vehicle {
private double speed;
private int wheels;
public Vehicle() {
}
public Vehicle(double speed, int wheels) {
this.speed = speed;
this.wheels = wheels;
}
}
public class Motorcycle extends Vehicle {
private double engineSize;
public Motorcycle(double speed, double engine) {
super(speed, 2);
this.engineSize = engine;
}
}
public class Moped extends Motorcycle {
}
Since Mope extends Motorcycle why is it telling me Moped needs to make a constructor? I want Moped to work without having any constructor.