摘要: interface Window { public void open(); public void close(); public void activated(); public void iconified(); public void deiconified(); } abstract class WindowAdapter im... 阅读全文
posted @ 2014-08-04 14:25 塔斯曼 阅读(108) 评论(0) 推荐(0) 编辑
摘要: interface Fruit { void eat(); } class Apple implements Fruit { public void eat() { System.out.println("I am eating apple."); } } class Orange implements Fruit { ... 阅读全文
posted @ 2014-08-04 10:35 塔斯曼 阅读(97) 评论(0) 推荐(0) 编辑