While ActionListener only has one method in the interface, creating an implementation of an interface in this manner means all methods of that interface implementation will execute the same code.
虽然ActionListener只有接口中的一个方法,但是以这种方式创建接口的一个实现意味着这个接口实现的所有方法都将执行同样的代码。
Listing 4 shows a first cut at an implementation of visit (Code) and visit (CodeException) that accumulates information about all the catch blocks in a method.
清单4了显示实现visit (Code)和visit (CodeException)的第一步,它将积累方法中所有catch块的信息。
Once this is done for all the use cases, we analyze the Implementation Model of the code to check if some logical grouping of the classes (files) already exists in the code.
一旦对所有用例都完成了,我们就分析代码的实现模型来检查某些类(文件)的逻辑分组是否已经在代码中存在。
The way to get the source is by downloading a ZIP file that includes all source code in the j2se workspace. That's why it is 68 MB, not because the Modules implementation is that large.
获得源码的方式就是下载ZIP包,所有的源码都存放在j2seworkspace中,这就是为什么它有68MB的原因,并不是因为Modules的实现很大。
Unlike class based types, anything can implement them or adapt to them, and all proper code in the Zope 3 system should ask for an interface implementation for a given object.
不象基于类型的类,任何东西都可以实现或适配它们,并且在Zope3系统中的所有适用代码都可以请求一个接口以实现给定的对象。
Unlike class based types, anything can implement them or adapt to them, and all proper code in the Zope 3 system should ask for an interface implementation for a given object.
不象基于类型的类,任何东西都可以实现或适配它们,并且在Zope3系统中的所有适用代码都可以请求一个接口以实现给定的对象。
应用推荐