c# support late binding or early binding.

Answers were Sorted based on User's Feedback



c# support late binding or early binding...

Answer / babu khatri bhai

yes c# support late binding or early binding

Is This Answer Correct ?    26 Yes 2 No

c# support late binding or early binding...

Answer / rakesh

yes it supports both depends

Is This Answer Correct ?    15 Yes 1 No

c# support late binding or early binding...

Answer / 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

c# support late binding or early binding...

Answer / jitendra

these both are type of polymorphism.

Note: Polymorphism has two type.

1.) compile time polymorphism/ method overloading/ early binding

2. run time polymorphism/ method overriding/ late binding

In early binding or method overloading at a compile
tome we know that what output will come so it is called
early binding.

In late binding or method overriding compiler does not
understand which class method is called. Note that both
methods have same name but onee is in base class and one is
in derive class and system know only at runtime which method
will display so it is called late bindinng.

Is This Answer Correct ?    7 Yes 0 No

c# support late binding or early binding...

Answer / pooja gupta

Binding refers the object type definition. You are using
Early Binding if the object type is specified when
declaring your object. Eg if you say Dim myObject as
ADODB.Recordset that is early binding (VB example).
If on the other hand you declare your object as a generic
type you are late binding. Eg if you Dim myObject as Object
(VB example).
One should note that binding is determined at object
declaration and not at object instantiation. Therefore it
does not matter if you later go on to Set myObject = New
ADODB.Recordset or Set myObject = CreateObject
(”ADODB.Recordset”).
Early binding allows developers to interact with the
object’s properties and methods during coding. You can
enjoy the benefits of intellisense. Also, early binding
permits the compiler to check your code. Errors are caught
at compile time. Early binding also results in faster code.
It’s disadvantage is that you cannot create a generic
object which may be bound to different types of objects.

Late binding on the other hand permits defining generic
objects which may be bound to different objects. Eg you
could declare myControl as Control without knowing which
control you will encounter. You could then query the
Controls collection and determine which control you are
working on using the TypeOf method and branch to the
section of your code that provides for that type. This is
the only benefit of late binding. It’s disadvantages are
that it is error prone and you will not enjoy much
intellisense whilst coding.

Is This Answer Correct ?    5 Yes 2 No

c# support late binding or early binding...

Answer / kumar

during compilation of program time the binding of function
is called as early binding or static binding.during
compilation time ,the c++ compiler determines which
function is used based on the parameter passed to the
function or functions return type.the compiler then
substitutes the correct function for each invocation.
by default ,c++ follows early binding.with
early binding one can achive greater efficency.function
calls are faster in this case because all the information
necessary to call the function are hard coded.

late binding, during execution of program time the binding
of program time the binding of function is called late
binding.binary binding require some overhead but provides
increase power and flexibility.this binding is implemented
through virtual function.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More STL Interview Questions

What is the disadvantage of templates ?

2 Answers   NSN, Symphony,


What is stl stand for?

0 Answers  


#define CUBE(x) (x*x*x) main() { int a,b=3; a=cube(b++); printf("%d %d",a,b); } What should be the value of a and b? My calc a=4 but syst a=6 how pls tell me if you know it?

12 Answers   Wipro,


Find the error in the following program struct point {struct point *next; int data; } x; main() {int...data; } x; main() {int i; for(x=p;x!=0;) x=x->next,x++; freelist(x); } freelist(x) {free(x); return }

1 Answers   Sun Microsystems,


What is a list in c++ stl?

0 Answers  






What is C++ could you enplane me please?

1 Answers  


What is meant by stl in c++?

0 Answers  


WHAT IS THE DIFFERENCE BETWEEN C++ AND VC++

1 Answers   Syntel,


c# support late binding or early binding.

6 Answers  


what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?

2 Answers  


method overloading means what?

2 Answers   CTS,


what are you now programming Languages C+

1 Answers   HCL,


Categories