Differentiate between static binding and dynamic binding.
Sr. No.
|
Static binding
|
Dynamic binding
|
1 |
The linking of function call to function definition at compile time is known as static binding
|
The linking of function call to function definition at run time is known as dynamic binding
|
2 |
Function definition to be executed is selected/ linked based on number or type of argument passed with function call at compile time.
|
Function definition to be executed is selected by checking the content of base class pointer at run time.
|
3 |
Complete function definition is available at the time of function call.
|
Completer function definition is not available at the time of function call
|
4 |
It is faster in execution.
|
It is slower in execution
|
5 |
Implemented with Function overloading and operator overloading
|
Implemented with virtual function
|