Late and early binding

Which one best in late binding and early binding? What is the difference between them ?

Showing Answers 1 - 9 of 9 Answers

chopragc

  • Nov 21st, 2011
 

Early binding is mapping decided by compiler at compile time or design time.

when compiler does not know at compile time to which object its going to map then its a late binding

Example in remoting

object o=Activator.GetType(typeof(class1),"www.abc.com");

here one does not know to which object it will point unless and until the program is running.

  Was this answer useful?  Yes

Sivavt

  • Mar 26th, 2012
 

Early binding Or Compile time Or static binding: Assigning of object to type reference happens at compile time.

Late binding Or Run time Or Dynamic binding: Assigning of object to type reference happens at run time.

Early binding is efficient while late binding provides flexibility to programmers.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions