What are delegates?where are they used



What are delegates?where are they used..

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

More Dot Net Framework Interview Questions

I have interview in accenture.I cleared 1st round in techniqual.I have interview with project lead.pls help me.

2 Answers   Accenture,


Where does web.config info stored? Will this be stored in the registry ?

1 Answers   Accenture, BirlaSoft,


what is ADO.NET

8 Answers   NIIT,


What are the derived classes from xmlReader and xmlWriter

1 Answers  


what is lazy loading in entity framework?

1 Answers   Microsoft,


Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?

1 Answers  


What are the ways to show data grid inside a data grid for a master details type of tables?

1 Answers  


What is ViewData and TempData in ASP.Net MVC?

1 Answers  


When i am using Ajax controls (updatepanel),Is page events all are executed or only some events are executed?which page events are executed?

5 Answers   TCS,


What does mvvm mean?

1 Answers  


creating crystal reports in asp.net & vb.net

1 Answers  


If background completes its processing will it wait for foreground threads?

2 Answers   Kanbay,


Categories