<prompt> Kujenga darasa kuwakilisha ndege. ni kupanua Gari na interface kuruka.  <response>: Heres an example code for the class representing an airplane, which extends from the Vehicle class and implements the Flying interface:public class Airplane extends Vehicle implements Flying private double altitude; private boolean isFlying; public AirplaneString make, String model, int year, double weight supermake, model, year, weight; altitude 0; isFlying false; Implement the methods from the Flying interface public void takeOff isFlying true; System.out.printlnThe airplane has taken off.; public void land isFlying false; altitude 0; System.out.printlnThe airplane has landed.; public void increaseAltitudedouble meters if isFlying altitude meters; System.out.printlnThe airplane has increased its altitude by meters meters.; else System.out.printlnThe airplane needs to take off first.; public void decreaseAltitudedouble meters if isFlying altitude - meters; System.out.printlnThe airplane has decreased its altitude by meters meters.; else System.out.printlnThe airplane needs to take off first.; Implement any other methods specific to the Airplane class ...In the code above, the Airplane class has a double attribute called altitude to represent its current altitude, and a boolean attribute called isFlying to indicate whether the airplane is currently flying or not. The class also has a constructor that calls the constructor of its superclass, passing the necessary parameters.The class implements the Flying interface, which defines four methods takeOff, land, increaseAltitudedouble meters, and decreaseAltitudedouble meters. These methods are implemented to reflect the behavior of an airplane when flying.Finally, the class can also have other methods specific to airplanes, depending on the requirements of the application. 