In the Groovy example, you aren't required to create the extra classes explicitly to implement the interface that defines the call's semantics.
在Groovy示例中,您不需要显式地创建额外的类来实现定义该调用语义的接口。
When you explicitly implement a member specified by an interface, you prefix the implementation with the name of the interface it relates to, as illustrated by Figure 12-6.
当你明确地实现由一个接口所指定的成员时,你用与之相关的接口名作为该实现的前缀,如图12 - 6所示。
应用推荐