Define an event.
Whenever an action takes place in a class, that class gives a notification to other classes or objects that are assigned to perform certain tasks. These notifications are known as events. For instance, when a button is clicked, the class generates an event known as Click. An event can be declared with the help of the event keyword.