继承分为实现继承(implementing inherit) 和接口继承(Interface inherit), VB6.0的类模块提供接口继承的支持。使用implements 语句能实现接口继承。
基于32个网页-相关网页
A class (whether abstract or concrete) that implements an interface does not really inherit anything from the interface it implements.
一个类(不管是抽象的还是具体的)实现一个接口并不真正从它实现的接口继承任何东西。
In the diagram shown in Figure 10, both the Professor and Student classes implement the Person interface and do not inherit from it.
在图10中显示的图中,Professor和Student类都实现了Person的接口,但并不从它继承。
Moreover, as of SAAJ 1.2 (which is also included in J2EE version 1.4), several of the SAAJ interfaces inherit from the respective DOM interface.
而且,和 SAAJ 1.2(J2EE 版本 1.4 中也包括该规范)一样,好几个 SAAJ 接口都是继承于各自的 DOM 接口。
应用推荐