InterviewSolution
| 1. |
What Is An Event? |
|
Answer» An event is a programming construct that reacts to a CHANGE in state, notifying any endpoints that have registered for notification. Primarily, events are used to inform a user input VIA the mouse and keyboard, but their usefulness is not limited to that. Whenever a state change is detected, perhaps when an object has been loaded or INITIALIZED, an event can be fired to ALERT any interested third parties. An event is a programming construct that reacts to a change in state, notifying any endpoints that have registered for notification. Primarily, events are used to inform a user input via the mouse and keyboard, but their usefulness is not limited to that. Whenever a state change is detected, perhaps when an object has been loaded or initialized, an event can be fired to alert any interested third parties. |
|