implements是实现某一个接口Interface是接口的定义
implements 是实现借口的关键词!而interface 是将一个类定义成借口的关键词!
直接上代码:public interface HelloInterface(){ void hello();}public class HelloImpl implements HelloInterface{ void hello(){ System.out.println("Hello World"); }}HelloImpl这个类是实现HelloInterface的。
接口 [jiē kǒu]基本翻译portconnectorinterface
314 浏览 3 回答
277 浏览 6 回答
322 浏览 7 回答
355 浏览 6 回答
215 浏览 4 回答
98 浏览 4 回答
175 浏览 3 回答
291 浏览 4 回答
343 浏览 6 回答
247 浏览 7 回答
227 浏览
352 浏览
200 浏览
229 浏览
190 浏览