+ 1

What is dynamic binding?

20th Apr 2017, 7:10 AM
Karan Singh
Karan Singh - avatar
4 Respostas
+ 4
override is a good example. A b = new B(); b.doSomething(); if both class have the same method, the compiler only can decide which should call in runtime. Thats the dynamic binding
20th Apr 2017, 8:21 AM
Szabó Gábor
Szabó Gábor - avatar
+ 3
Perfect example of dynamic binding is overriding. Both parent and child classes have same method.
20th Apr 2017, 8:01 AM
Alexey
Alexey - avatar
+ 3
Dynamic binding it's when type of the object is determined at run-time. In other words dynamic binding is how polymorphism implemented.
20th Apr 2017, 8:26 AM
Alexey
Alexey - avatar
0
that's dynamic polymorphism not dynamic binding
20th Apr 2017, 8:03 AM
Karan Singh
Karan Singh - avatar