Question 17
Consider the code given below.
1 interface Travelable{ 2 void travel(); 3 } 4 interface Flyable{ 5 void fly(); 6 } 7 interface Seatable extends Travelable, Flyable{ 8 void seat(); 9 }10 abstract class Vehicle implements Seatable {11 public void seat(){12 System.out.println("Vehicle seat");13 }14 }15 class Airplane extends Vehicle{16 public void travel(){17 System.out.println("Plane travel");18 }19 public void fly(){20 System.out.println("Plane fly");21 }22 }23 public class Test{24 public static void main(String[] args){25 Travelable t = new Airplane();26 t.travel();27 }28 }Choose the correct option/s