[Head First Design Patterns] Observer Pattern
08 Apr 2022The observe pattern
Design principles
- Strive for loosely couple designs between objects that interact (allow us to build flexible OO system that can handle many changes because they minimize the interdependency between objects)
Definition
- define a one-to-many dependency relationship so if the state of one object changed, it would notify to all of its depend objects