Head First Design Patterns Notes - Observer Pattern
Publisher - Subscriber model
Loosely coupled, program to interfaces and not implementations - because the Publisher does not store concrete implementation of the Observer is. It just stores Observer interface references in a list. This achieves loose coupling.
Comments
Post a Comment