A call of a virtual function through a pointer or a reference runs the version of the class of the object pointed at, which is known only at run time, not the version of the pointer’s type: this is dynamic dispatch. Code written against a base class and able to work, through dynamic dispatch, with objects of every derived class has subtype polymorphism.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表
什么是 Dynamic dispatch, subtype polymorphism?
又称: dynamic dispatch · subtype polymorphism