Home > Software > .NET > Dot-Net
Interview Questions   Tutorials   Discussions   

Dot-Net - What is the difference between early binding and late binding in .net?

asked mar October 4, 2014 05:57 AM  

What is the difference between early binding and late binding in .net?


1 Answers

answered By siddhant   0  

Early bound

  • The compiler can work out where the called function will be at compile time.
  • The compiler can guarantee early (before any of the programs code runs) that the function will exist and be callable at runtime.
  • The compiler guarantees that the function takes the right number of arguments and that they are of the correct type. It also checks that the return value is of the correct type.


  • The lookup will take longer because its not a simple offset calculation, there are usually text comparisons to be made.
  • The target function may not exist.
  • The target function may not accept the arguments passed to it, and may have a return value of the wrong type.
  • With some implementations, the target method can actually change at run-time. So, the lookup may execute a different function. I think this happens in the Ruby language, you can define a new method on an object while the program is running.
  • Late-binding allows function calls to start calling a new override for a method instead of calling the existing base method.
   add comment

Your answer

Join with account you already have



Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!