Creating an Event Dispatcher

An event dispatcher is a type of design pattern derived from the Observer Design pattern that enables the developer’s objects to listen to changes in another object without creating a direct two-directional linkage between the objects. In this video, we will have a working event dispatcher.

  • Add events to the dispatcher
  • Dispatch the events
  • Test whether everything works as planned