摘要:
接口不能被实例化,如:----------------清单1----------------------public interface Test { public void doIt();}---------------------------------------------在测试类中语句:Test Tone = new Test();就是错的。而如果写成:-----------------清单2----------------------Test Tone = new Test(){ public void doIt(){ System.out.print("-------- 阅读全文
posted @ 2010-03-19 21:23
feixingfei
阅读(196)
评论(0)
推荐(0)
浙公网安备 33010602011771号