+ 4
What is dynamic binding ?
3 odpowiedzi
+ 5
Virtual Function comes under the category of dynamic binding...
Dynamic binding also called dynamic dispatch is the process of linking procedure call to a specific sequence of code (method) at run-time. ... Dynamic binding is also known as late binding or run-time binding. Dynamic binding is an object oriented programming concept and it is related with polymorphism and inheritance.
+ 4
Dynamic binding happens when all information needed for a function call cannot be determined at compile-time. Static binding can be achieved using the normal function calls, function overloading and operator overloading while dynamic binding can be achieved using the virtual functions
0
Example -
Method overloading = static binding
Method overriding = dynamic binding