Static Binding and Dynamic Binding
Static Binding and Dynamic BindingĀ
When assignment of types to variables and expressions at compile time, it is known as static binding or early binding. Static binding leads to run-time efficiency since the compiler can optimize code before executing it.
When linking of a routine or object at runtime is done based on the conditions at that moment, it is known as dynamic binding or late binding. Dynamic binding offers the advantages of flexibility and a high level of problem abstraction.
Posted in Computer Science, Information Technology, Object Oriented Programming, Object Oriented Programming |
