IT/ETC
Chapter 2
토니당
2020. 2. 28. 00:28
728x90
반응형
Observer pattern can be visualized as newspaper subscription service with its publishers and subscribers.
the subject is the publisher, observers are the subscribers.
The observer pattern - defines a one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically.
Design principles : Strive for loosely coupled designs between objects that interact
반응형