public class Plane implements FlyingObject {
public void fly(int distancevalue)
{
  //code for computing the amount of fuel consumed
  System.out.println("fuel consumed:" + distancevalue * 20);
}
}

