
Little things make big differences, so are these terms!
Binding
Binding is the process where all the function calls are matched with their correct function definition and assigning memory address to the variables.
Early Binding
Early binding is reffered to static binding or compile time binding.
This binding is done by the complier when you compile the program. It directly assigns memory to function calls and variable at compile time. Because of this, it is called static binding.
Late Binding
Late binding is reffered to dynamic binding or run-time binding.
Here, the compiler bind the function call and variable at runtime.
By default early binding take place. We can apply late binding use virtual function.
- C supports early binding only.
- C++ supports both early and late binding.