What is a delegate? How can it works?



What is a delegate? How can it works?..

Answer / Lalit Mohan Gupta

A delegate in C# is a type that represents methods with a particular parameter list and return type. Delegates allow developers to create events, method pointers, and callback functions. When you invoke a delegate, it calls the associated method with the specified arguments. This allows for loose coupling between classes and can facilitate object-oriented programming concepts such as polymorphism.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is anonymous methods in c#?

1 Answers  


How to transpose multi-dimensional array?

1 Answers   C DAC, CDAC,


Explain About disco and uddi

1 Answers   Digital GlobalSoft,


What namespaces are necessary to create a localized application?

1 Answers  


Does c# supports destructors?

9 Answers   Choice Solutions,


Can hashtable have duplicate keys?

1 Answers  


What are bitwise logical operators?

1 Answers  


What is nullable types in c#?

1 Answers  


What is the difference between abstract class and interface in c#?

1 Answers  


When should I throw an exception?

1 Answers  


Is dll a library?

1 Answers  


Explain constructor in c#?

2 Answers  


Categories