Sunday, November 4, 2018

Difference Between Static and Dynamic Binding in c++ by 124study.blogspot.in




Content: Static Vs Dynamic Binding

  1. Comparison Chart
  2. Definition
  3. Key Differences
  4. Conclusion

Comparison chart:

BASIS FOR COMPARISONSTATIC BINDINGDYNAMIC BINDING
Event OccurrenceEvents occur at compile time are "Static Binding".Events occur at run time are "Dynamic Binding".
InformationAll information needed to call a function is known at compile time.All information need to call a function come to know at run time.
AdvantageEfficiency.Flexibility.
TimeFast execution.Slow execution.
Alternate nameEarly Binding.Late Binding.
Exampleoverloaded function call, overloaded operators.Virtual function in C++, overridden methods in java.

0 comments:

Post a Comment