Observer Pattern
Intent: Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
Observer
Update
Subject
AddDependent RemoveDependent Changed
RectangleFigure
LineFigure
Update
observer/dependent
endPoint
Previous slide
Next slide
Back to first slide
View graphic version