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...

What are delegates?where are they used

Answer Posted / kirti

A delegate defines a reference type that can be used to encapsulate a method with a specific signature. A delegate instance encapsulates a static or an instance method. Delegates are roughly similar to function pointers in C++; however, delegates are type-safe and secure.

When do you use virtual keyword ?.

When we need to override a method of the base class in the sub class, then we give the virtual keyword in the base class method. This makes the method in the base class to be overridable. Methods, properties, and indexers can be virtual, which means that their implementation can be overridden in derived classes.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between partial and renderpartial?

986


What is the advantage of using asp.net routing?

1153


What is the difference between windows vista and .net framework 3.0 ?

1052


Explain JSON Binding?

1109


Explain representational state transfer (rest) in detail?

1095


Which is the root namespace for fundamental types in .net framework?

1050


Explain peek method in tempdata in asp.net mvc?

1165


what is entity framework?

1124


List the new features added in .net framework 4.0.

983


Explain the difference between Viewbag and Viewdata in ASP.NET MVC?

1083


Can any particular component of .net framework 3.0 be removed?

1050


Why is entity framework used?

1117


What is controllercontext?

1095


Explain covariance and contra-variance in .net framework 4.0. Give an example for each.

1072


Explain how to use multiple submit buttons in ASP.Net MVC?

1354