Dynamic binding and static binding

The difference between static binding and dynamic binding is the main function in the process of calling a function of whether there is a difference which function determined in advance. If determined in advance, you need to use a function, for the static binding (compile time appears). When running a function to determine, for the dynamic binding (run time it appears). Static binding refers to the called function and the calling function and the relationship between them an address in memory at compile time has been determined , running time does not occur change. Since the compiler at compile time and can not know exactly the function that will be called, only to determine the function that will be called during program execution. To be exact way the function call, we must work to build requirements in the program is running.

Guess you like

Origin www.cnblogs.com/strangemonkey/p/11370653.html