dynamic binding

Late binding, or dynamic binding,[1] is a computer programming mechanism in which the method being called upon an object or the function being called with arguments is looked up by name at runtime.

With early binding, or static binding, in an object-oriented language, the compilation phase fixes all types of variables and expressions. This is usually stored in the compiled program as an offset in a virtual method table ("v-table") and is very efficient. With late binding the compiler does not read enough information to verify the method exists or bind its slot on the v-table. Instead the method is looked up by name at runtime.

https://en.wikipedia.org/wiki/Late_binding

原文地址:https://www.cnblogs.com/feng9exe/p/8309568.html