Question 18
Consider the Java code given below that prints the seating capacity of each vehicle in a list of vehicles. From among the options, identify the appropriate function header for function printSeating that takes as input a list of Vehicle objects and prints the seating capacity of each.
import java.util.*;abstract class Vehicle{ abstract void capacity();}class Bike extends Vehicle{ public void capacity() { System.out.println("Capacity is two"); }}class Auto extends Vehicle{ public void capacity() { System.out.println("Capacity is three"); }}public class Test { // LINE 1: FUNCTION HEADER { // invokes method capacity() // to print the capacity of each vehicle } public static void main(String[] args) { List<Vehicle> vlist = new ArrayList<Vehicle>(); vlist.add(new Bike()); vlist.add(new Auto()); seating(vlist); }}Choose the correct option(s).