多分派 Multiple dispatch
多分派(Multiple dispatch or multimethods)是某些面向对象编程语言的特性,函数或者方法的分派取决于运行时参数的对象类型。它是对方法调用只能由调用者决定的单分派的扩展。多分派概括了两个或多个对象的动态分派。
单词 | Multimethods |
释义 |
Multimethods
中文百科
多分派 Multiple dispatch(重定向自Multimethods)
多分派(Multiple dispatch or multimethods)是某些面向对象编程语言的特性,函数或者方法的分派取决于运行时参数的对象类型。它是对方法调用只能由调用者决定的单分派的扩展。多分派概括了两个或多个对象的动态分派。
英语百科
Multiple dispatch 多分派(重定向自Multimethods)
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. |
随便看 |
|
英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。