Events
- Event is a mechanism by which method of one class can raise method of another class , without the hazard of instantiating that class. It provides to raise the method (event handler method) of one class with help of another method in the same or different class (triggering method).
The below steps is required to have the event handler in the class:-
- Create an event in a class.
- Create a triggering method in the same class which will raise the event.
- Create an event handler method for the event in same/other class.
- Register the event handler method in the program.
No comments:
Post a Comment