Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

c# support late binding or early binding.

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to making game in c++ ?

2655


Define stl.

1219


How does an stl file work?

1095


How is stl different from c++ standard library?

1254


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

2169


Is stl part of c++ standard?

1038


How do you convert stl to steps?

1107


How connect plc and pc through software

2409


What is stl stack?

1071


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

3321


What are the various types of stl containers?

1109


Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.

2113


What is the use of stl?

1044


What does stl stand for in basketball?

1083


When did c++ add stl?

1172