Static Binding |
Dynamic Binding |
It is also known as early binding or compile time binding. |
It is also known as late binding or run-time binding. |
It is done at compile time. |
It is done at runtime. |
The compiler can tell the CPU to jump directly to the function’s address. |
The program has to read the address held in the pointer and then jump to that address. |
It is more efficient than dynamic binding. |
It is less efficient than static binding. |
It is less flexible than dynamic binding. |
It is more flexible than static binding. |
No comments:
Post a Comment