Monday 12 September 2016

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:-

  1. Create an event in a class.
  2. Create a triggering method in the same class which will raise the event. 
  3. Create an event handler method for the event in same/other class. 
  4. Register the event handler method in the program. 
                         more information......

No comments:

Post a Comment