Java 内部类
摘要:
1:定义一个接口public interface ImyInterface { int get();}2:定义一个具体类,实现接口class Implment1 implements ImyInterface{ public int get() { return 23; } public String getStr(){ return "hello World!"; }}3:客户端调用 ImyInterface interf = new Implment1(); Implment1 instance = (Implment1)i... 阅读全文
posted @ 2013-03-28 14:43 邢同举 阅读(168) 评论(0) 推荐(0)
浙公网安备 33010602011771号