---
title: "What are events and delegate?"  
description: "What are events and delegate?"  
author: "Varun Agrawal"  
published: 2011-03-29  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/731/what-are-events-and-delegate  
category: "oops"  
tags: ["oops"]  
reading_time: 2 minutes  

---

# What are events and delegate?

An event is delivered to an object by means of a call to amethod in that object. An event isdelegate type class member that is used by the object or class and it provide anotification to other objects that an event has occurred.

We define the event as

modifiers **event** type NameOfEvent\
\
delegate\

**Delegates** are similar to object references, but are used to reference methods instead of objects. The type of a delegate is type or signature of the method rather than class. Hence a delegate has three properties:

· The type or signature of the method that the delegate can point to

· The delegate reference which can we used to reference a method

· The actual method referenced by the delegate

## Answers

### Answer by Varun Agrawal

An event is delivered to an object by means of a call to amethod in that object. An event isdelegate type class member that is used by the object or class and it provide anotification to other objects that an event has occurred.

We define the event as

modifiers **event** type NameOfEvent\
\
delegate\

**Delegates** are similar to object references, but are used to reference methods instead of objects. The type of a delegate is type or signature of the method rather than class. Hence a delegate has three properties:

· The type or signature of the method that the delegate can point to

· The delegate reference which can we used to reference a method

· The actual method referenced by the delegate

### Answer by Varun Agrawal

An event is a message sent by a control to notify the occurrence of an action. However it is not known which object receives the event. For this reason, .NET provides a special type called Delegate which acts as an intermediary between the sender object and receiver object.


---

Original Source: https://www.mindstick.com/interview/731/what-are-events-and-delegate

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
