Topic: 关于接口的概念 |
Print this page |
1.关于接口的概念 | Copy to clipboard |
Posted by: nihaoll Posted on: 2006-02-23 09:34 public interface A{} public interface B{} public interface C{} public class E{} public class F{} 一个接口可以继承多个接口 public interface A extends B,C{} 一个类可以实现多个接口 public class E implements A,B{} 那么多个类可以实现一个接口吗? public class E implements A{} public class F implements A{} 请高手指教,谢谢 |
2.Re:关于接口的概念 [Re: nihaoll] | Copy to clipboard |
Posted by: Libra_1016 Posted on: 2006-02-23 10:56 is sure .. |
3.Re:关于接口的概念 [Re: nihaoll] | Copy to clipboard |
Posted by: nihaoll Posted on: 2006-02-23 11:09 谢谢了。 |
4.Re:关于接口的概念 [Re: nihaoll] | Copy to clipboard |
Posted by: rivalhw Posted on: 2006-02-28 17:00 当然可以了 |
5.Re:关于接口的概念 [Re: nihaoll] | Copy to clipboard |
Posted by: XiaoN Posted on: 2006-03-01 22:51 可以实现,不过一个类只能有一个基类,java的多继承是靠内部类和接口实现的 |
6.Re:关于接口的概念 [Re: nihaoll] | Copy to clipboard |
Posted by: jsmile Posted on: 2006-03-02 21:25 多个类可以实现一个接口 - 这正是接口的用意。 |
7.Re:关于接口的概念 [Re: nihaoll] | Copy to clipboard |
Posted by: gyang373 Posted on: 2006-03-03 20:59 我无语 |
8.Re:关于接口的概念 [Re: nihaoll] | Copy to clipboard |
Posted by: rr253 Posted on: 2006-03-13 21:04 看来楼主对继承的理解不够。。。。 接口的目的就是为了对继承的说阿 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |