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

What is orm entity framework?

0 Answers  


Can you explain renderbody and renderpage in asp.net mvc?

0 Answers  


What is entity graph? : Entity framework

0 Answers  


Can we create .DLL file without using the namespace?

4 Answers  


What is boxing and unboxing?

4 Answers   Kanbay, TCS,






What is entityset? : Entity framework

0 Answers  


What is poco proxy? : Entity framework

0 Answers  


Features in .net framework 1.1 ?

1 Answers   Digital GlobalSoft,


What is html.renderpartial?

0 Answers  


What are differences between entity framework and l2s? : Entity framework

0 Answers  


Speaking of Boolean data types, what's different between C# and C/C++ ?

1 Answers  


How big is the char ?

1 Answers  


Categories