C++: What is Early Binding and Dynamic Binding?
What is Early Binding and Dynamic Binding?
The term binding refers to the connection between a function call and the actual code executed as a result of the call.
Early Binding: If the function is to be called is known at compile-time, it is known as "static" or "early binding."
Dynamic Binding: If the function is to be called is decided at run time, it is called "late" or "dynamic binding." Dynamic binding is so called because the actual function called at run-time depends on the contents of the pointer. For example, call to virtual functions, call to functions to be linked from dlls use late binding.




Comments
Log in or create a user account to comment.