We can use a pattern called Double Dispatch to pull out the variation into the subclasses in such a way that we don't break existing interface contracts.
我们可以使用称为双重分发的模式将变化推入子类中,通过这种方式,我们不需要破坏现有的接口定义。
The run-time system may dispatch multiple client invocations to the service endpoint interface to this single instance.
这个运行时系统可以把多个对该服务端点接口的客户机调用分派到对于这个单一实例。
All interface types in Ada 2005 are implicitly tagged types, i.e. they support run-time dispatch (see Figure 3. Error: Reference source not found).
Ada 2005中的所有接口类型是绝对标记的类型。它们支持运行时调度见于图3。
应用推荐