Design patternsObserver


Remarks

enter image description here

What is the intent ?

  • Adopt the principle of separation of concerns.
  • Create a separation between the subject and the observer.
  • Allow multiple observers to react to change a single subject.

What is the structure ?

  • Subject provides a way to Register, Unregister, Notify.
  • Observer provides a way to update.