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

How Find, Replace and Go To commands ca be used to substitute one character string for another? Explain with the heIp of an example.

1 Answers  


Give two integer arrays A & B.A has n elements and B has ' n-1 ' elements . A has all the elements that are there in B. But B has one missing element. Write a function that takes arrays , A & B as imnput and finds the missing element in most optised manner .

4 Answers   Zycus Infotech,


Diffrernce Between Overloading and Overriding?

2 Answers   Wipro,


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

0 Answers  


What are the various types of stl containers?

0 Answers  






To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command

0 Answers  


i wanted to know about questions about c,c++ , which is required for placements.... im a fresher

0 Answers   NDS,


if x<>=z then statement end what is the cyclomatic complexity

5 Answers  


What is Constructor

14 Answers   Angel Broking,


What are the symptoms of stl?

0 Answers  


What do you mean by stl?

1 Answers  


write a program to search and display the position of an element in a single-dimentional array using function.

1 Answers  


Categories