« Back
abstract interface i1 { void show(); } abstract interface i2 { void disp(); } class A implements i1,i2 { public void show() { System.out.println("show A"); } public void disp() { System.out.println("Disp A"); } } class MIClass { public static void main(String args[]) { i1 o1 =new A(); i2 o2=new A(); o1.show(); o2.disp(); } }
×
Report a Problem:
Description:
Submit