Event Occurrence | Events occur at compile time are "Static Binding". | Events occur at run time are "Dynamic Binding". |
Information | All information needed to call a function is known at compile time. | All information need to call a function come to know at run time. |
Advantage | Efficiency. | Flexibility. |
Time | Fast execution. | Slow execution. |
Alternate name | Early Binding. | Late Binding. |
Example | overloaded function call, overloaded operators. | Virtual function in C++, overridden methods in java. |
0 comments:
Post a Comment