Problem Statement - B02D-2017
Differentiate between static and dynamic binding in Python? Give suitable examples of each.
Solution
CSKC| Created: 10-Jan-2019 | Updated: 10-Jan-2019|CBSE12A-2017
Differentiate between static and dynamic binding in Python? Give suitable examples of each.
|
Static Binding: It allows linking of function call to the function definition during compilation of the program.
Dynamic Binding: It allows linking of a function during run time. That means the code of the function that is to be linked with function call is unknown until it is executed. Dynamic binding of functions makes the programs more flexible.
CSKC| Created: 10-Jan-2019 | Updated: 10-Jan-2019|CBSE12A-2017