摘要: 简单说:extends是继承父类,只要那个类不是声明为final或者那个类定义为abstract的就能继承,JAVA中不支持多重继承,但是可以用接口来实现,这样就要用到implements,继承只能继承一个类,但implements可以实现多个接口,用逗号分开就行了比如class A extends B implements C,D,E 术语话来说:extends 继承类;implements 实现接口。类和接口是不同的:类里是有程序实现的;而接口无程序实现,只可以预定义方法 extends 继承类。implements 实现接口:Java也提供继承机制﹐但还另外提供一个叫interface的 阅读全文
posted @ 2010-06-18 15:12 qiang.xu 阅读(1151) 评论(0) 推荐(0) 编辑
摘要: Documents : http://java.sun.com/docs/books/tutorial/uiswing/This trail tells you how to create graphical user interfaces (GUIs) for applications and applets, using the Swing components. Getting Started with Swing is a quick start lesson. First it gives you a bit of background about the JFC and Swing 阅读全文
posted @ 2010-06-18 09:59 qiang.xu 阅读(127) 评论(0) 推荐(0) 编辑