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

How large is the .net framework 3.0? Does this change make the release larger?

0 Answers  


what is MVC pattern?

2 Answers  


What is CLR? How it will work?

5 Answers  


Why do you need to box a primitive variable

1 Answers  


What does assert() method do?

1 Answers   MCN Solutions, Siebel Systems,


What is CLR and how it generates native code ?

1 Answers   Digital GlobalSoft, Vital Soft,


How we can invoke child actions in ASP.Net MVC?

0 Answers  


Microsoft introduced c# as a de facto language of the .NET platform. What is mean by de facto and fot what purpose? Please answer me. Advance thanks.

3 Answers   Excel,


what are abstract classes? what is overriding?

12 Answers  


how to maintain the session state? what is Abstract class and interface and inheritence with example?

2 Answers  


What are sections?

0 Answers  


Why are there five tracing levels in System.Diagnostics.TraceSwitcher?

1 Answers  


Categories