Events are declared using the statements
CLASS-EVENTS, which are
possible only in the declaration part of classes and interfaces. Declaring an event in a class means that the methods of the class trigger the event and can therefore cause execution of
event handlers. In the
declaration, you can define output parameters for an event, for which actual parameters are transferred to the event handler when the event is executed.
EVENTS declares instance events. Instance events are linked to objects. They can only be triggered in instance methods of the same class.
CLASS-EVENTS declares static events. Static events are not linked to objects. They can be triggered in all methods of the same class.