日期:2014-05-20 浏览次数:20708 次
interface I1 { void get(); } interface I2 { void get(); } public class MultiInter implements I1{ public void get(){ System.out.println("I am from I1"); } private class I2Impl implements I2{ public void get(){ System.out.println("I am from I2"); } } public void get2(){ I2 i2=new I2Impl(); i2.get(); } public static void main(String rsg[]){ MultiInter mi=new MultiInter(); mi.get(); mi.get2(); } }