Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 300 Bytes

File metadata and controls

11 lines (8 loc) · 300 Bytes

Observer

When to use

We use Observer pattern when:

  • The change of the state in one object reflects in another object without keeping the objects tight.
  • If we want to add observer in future with minimal changes.

Real word API examples

  • Model View Controller Pattern
  • Event management