c# support late binding or early binding.

Answer Posted / santu sarkar

Early binding is when your client app can detect at compile
time what object a property or method belongs to. Since
it "knows", it resolves the references and the compiled
executable contains only the code to invoke the object's
properties, methods, events, etc.

This is a good thing if you want to speed because the call
overhead is greatly reduced.

Late binding is the slowest way to invoke the properties
and methods of an object. You use late binding when you
write a function that uses an object variable that acts on
any of several different class objects. Since the compiler
doesn't "know" what class object will be assigned to the
variable, it doesn't resolve the references into the
compiled executable. In this case they are resolved at
runtime... when you actually have an assigned object to
reference the properties and methods to.

Hope this helps.

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is stl open source?

833


how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

2091


When did c++ add stl?

931


How stl is different from the c++ standard library?

841


What is stl in c++ with example?

833


Is string part of stl?

934


How do I convert a stl file?

759


Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A.Explain how a pointer to function can be declared in C++? B.List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header (“Include”) Files.

2522


sir please send me bpcl previous question papers

2138


totoo po ba ang manga aliens!

2524


How is stl different from c++ standard library?

950


What is stl stand for?

932


What are the components of stl?

846


What are the different types of stl containers?

858


What is a stl vector?

816