Static vs. Dynamic Binding.- Static binding is done at compile time when a function is called in order to match it with the definition. - Dynamic binding is at run time where we can specify that the compiler matches a function call with the correct function definition at run time. - Virtual keyword is used if the function needs to be dynamically bounded.Static vs. Dynamic Binding- Binding means connecting the function call to a function implementation. - Connecting the function call to the function implementation before execution is static binding whereas connection them at the run-time is dynamic binding.
|