Schema of the Observer Pattern
for all o in observers
o->update(this);
update (Subject)
Observer
return subjectState;
observerState=subject->getState()
observers
*
subject
// change state…
notifyObservers();
Previous slide
Next slide
Back to first slide
View graphic version