Question 20
Consider the code given below.
interface Movable{ void speed();}class ES implements Movable{ public void speed() { System.out.println("You can go upto 30 Km/ph"); }}class Sonic{ public ES getsonic() { return new HighSpeed(); } private class HighSpeed extends ES implements Movable{ public void speed() { System.out.println("You can go upto 60 Km/ph"); } }}public class Test { public static void main(String[] args) { // CODE BLOCK }}Choose the correct option(s) to be filled in place of CODE BLOCK so that the output is:
You can go upto 60 Km/ph