接口类如清单8 所示。
Developer应该为每个定制服务提供一个接口类和实现类。
Developer should provide an interface class and implementation class for each custom service.
是的,它是一个类,而不是一个接口。
另一方面,单个类可以实现多个接口。
For another, a single class can implement multiple interfaces.
第二个包中的类文件实现了第一个包中的接口。
The class files from the second package implement the interfaces from the first.
图7显示了所有类和接口的关系。
The relationship of all the classes and interfaces is shown in Figure 7.
在使用接口时,尝试避免直接引用实现类。
When you use interfaces, try to avoid ever referring to the implementation classes directly.
如果类保证了接口,您必须能够保证类。
If classes guarantee an interface, you must be able to guarantee a class.
WSXL基本接口有四类,如 表1 中所示。
The WSXL base interfaces include the four categories shown in Table 1.
如果这是接口部分,那么输出所有类实例的变量。
If this is the interface pass, output all the class instance variables.
无特殊接口或者类路径限制。
每种接口代表RecordsManager某一特定类的功能。
Each interface representing a particular class of Records Manager function.
任何定制事件类必须实现XMLEvent接口。
Any custom event class must implement the XMLEvent interface.
分布类中是否重新声明它所实现的接口也是可选的。
It is always optional to re-state any base interface in a partial class.
如前所述,这个类必须实现ContractManager接口。
As I said earlier, this class must implement the ContractManager interface.
类和接口名以大写字母开头,如Frame。
Class and interface names begin with a capital letter, as in Frame.
该接口的 getOwner()方法返回类实例的所有者。
The getOwner() method of the interface returns the owner of the class instance.
在客户端,定义一个实现 AsyncCallback接口的类。
On the client side, you define a class that implements the interface AsyncCallback.
第一个是头文件(.h),用于声明类接口;
The first is the header (.h) file that declares the interface of the class.
他们非常容易测试-因为EJB就是一些类和接口。
They are really easy to test - it's just class with an interface.
从接口派生出mock类。
(一个有趣的发现是,Action是类而不是接口)。
An interesting observation is that Action is a class and not an interface.
groovy脚本必须包含至少一个实现接口的类。
The GroovyPdfGenerator.groovy script must contain at least one class that implements your interface.
Repository 实际上是二进制类表示的源代码的接口。
org.apache.bcel.util.Repository is actually an interface for a source of binary class representations.
这个类既可以是个接口,也可以是个明确的类。
它是这个类的内部接口并可以是隐藏的。
该接口处理任何类型的消息(对象类)。
该接口处理任何类型的消息(对象类)。
应用推荐