Home / Object Oriented Programming / Briefly explain early binding and late binding?

Briefly explain early binding and late binding?

Briefly explain early binding and late binding?

The word binding means the mechanism which the compiler uses to decide which function should be executed on which call.

Early binding: The function definition and function call are linked during compile time is known as early binding or static binding. This can be achieved using normal function.

Late binding: The function calls with the correct function definition at run time is known as late binding or dynamic binding. Dynamic binding can be achieved by using virtual function.