Lecture overview -- Keyboard shortcut: 'u'  Previous page: Events [Section] -- Keyboard shortcut: 'p'  Next page: Events in C# -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 12 : 20
Object-oriented Programming in C#
Operators, Delegates, and Events
Events

In a program, an event contains some actions that must be carried out when the event is triggered

  • Event

    • Belongs to a class

    • Contains one or more operations, which are called when the event is triggered.

    • The operations in the event are called implicitly

  • Operation

    • Belongs to a class

    • Is called explicitly - directly or indirectly - by other operations

Inversion of control

Don't call us - we call you