Search This Blog
Tuesday, March 22, 2011
Tutorial : Early Binding vs Late Binding (Dynamic Binding)
Connecting a method call to method body is called as binding.
If the binding happens during the compile time then it is called early binding and if the binding happens during the run time then it is called late binding. More detailed explanation is given below
“When binding is performed before the program is run (by the compiler and linker, if there is one), it’s called early binding. You might not have heard the term before because it has never been an option with procedural languages. C compilers have only one kind of method call, and that’s early binding. The other solution is called late binding, which means that the binding occurs at run time, based on the type of object. Late binding is also called dynamic binding or run-time binding”.