抽取超类与抽取接口的最大区别在于放入超类中的方法是被实际移到那里的。
A huge difference between extracting a superclass and extracting an interface is that the methods put in the superclass are actually moved there.
抽取出接口常常是使得你的代码更干净利落更易测试的举动。
Extracting an interface is usually a move that makes your design cleaner and more testable.
下面是从WSDL文件中抽取的用于生成服务端点接口的一段代码。
Here is an extract from the WSDL file that is used to generate the Service Endpoint interface.
应用推荐