Question 14
Consider the Java code given below
interface Vehicle{ abstract void features();}class BS4Vehicle implements Vehicle { public void features() { System.out.println("BS4 vehicle is less polluted than BS3 Vehicle"); }}class BS6Vehicle extends BS4Vehicle{ public void features() { System.out.println("BS6 vehicle is less polluted than BS4 Vehicle"); }}public class GenericTest { // LINE 1 : FUNCTION HEADER { obj.features(); } public static void main(String[] args) { getDetails(new BS4Vehicle()); getDetails(new BS6Vehicle()); }}Choose the correct option(s) to be filled in place of LINE 1 so that the program generates the output:
BS4 vehicle is less polluted than BS3 Vehicle
BS6 vehicle is less polluted than BS4 Vehicle