Event Handlers
An application responds to the events by executing particular code meant for each type of event.
Not all events need to be handled by an application. For example, a drawing application may be interested in handling only mouse movements.
As a designer of an event-driven application you will write methods to handle the relevant events.