Question 16
Consider the code given below.
interface Storable{ void store();}interface Transferable{ void transfer();}class Laptop{ public HardDisk getDisk() { return new HardDisk(); } private class HardDisk implements Storable,Transferable { public void store() { System.out.println("Stores data"); } public void transfer() { System.out.println("Transfers data"); } }}public class PrivateTest { public static void main(String[] args) { // CODE BLOCK }}Choose the correct option to be filled in place of CODE BLOCK so that the output is:
Stores data
Transfers data