+ 2
In dynamic binding, derived class's function overrides the base class's function. But in static binding, If a function is final, private or static in a base class, that function can't be overridden by the derived class. Now when overriding doesn't occur, the function in the base class is called. In short: In dynamic binding, type of object is determined. In static binding, type of reference is determined. For more explanation visit this link: https://beginnersbook.com/2013/04/java-static-dynamic-binding/
27th Apr 2019, 4:10 AM
Edwin
Edwin - avatar