摘要: 参考: think in java//定义一个接口interfaceIncrementable...{voidincrement();}//一个简单的接口实现类classCallee1implementsIncrementable...{privateinti=0;publicvoidincrement()...{i++;System.out.println(i);}}classMyIncrement...{voidincrement()...{System.out.println("otheroperator");}staticvoidf(MyIncrementmi).. 阅读全文
posted @ 2008-05-18 20:46 shine_panda 阅读(237) 评论(0) 推荐(0) 编辑