多分派 Multiple dispatch
多分派(Multiple dispatch or multimethods)是某些面向对象编程语言的特性,函数或者方法的分派取决于运行时参数的对象类型。它是对方法调用只能由调用者决定的单分派的扩展。多分派概括了两个或多个对象的动态分派。
单词 | Multimethod |
释义 |
Multimethod
中文百科
多分派 Multiple dispatch(重定向自Multimethod)
多分派(Multiple dispatch or multimethods)是某些面向对象编程语言的特性,函数或者方法的分派取决于运行时参数的对象类型。它是对方法调用只能由调用者决定的单分派的扩展。多分派概括了两个或多个对象的动态分派。
英语百科
Multiple dispatch 多分派(重定向自Multimethod)
Multiple dispatch or multimethods is a feature of some programming languages in which a function or method can be dynamically dispatched based on the run-time (dynamic) type or, in the more general case some other attribute, of more than one of its arguments. This is a generalization of single-dispatch polymorphism where a function or method call is dynamically dispatched based on the actual derived type of the object on which the method has been called. Multiple dispatch routes the dynamic dispatch to the implementing function or method using the combined characteristics of one or more arguments. |
随便看 |
英汉双解词典包含3607232条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。