2. Observer Defined• Hes a silent guardian. A watchful protector. A Dark Knight.
3. Pattern States Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically
4. Applicability• When an abstraction has two aspects, one dependent on the other. Encapsulating these aspects in separate objects lets you vary and reuse them independently.• When a change to one object requires changing others, and you dont know how many objects need to be changed.• When an object should be able to notify other objects without making assumptions about who these objects are. In other words, you dont want these objects tightly coupled.
13. Observer & .NET framework• Model View Controller Pattern - The observer pattern is used in the model view controller (MVC) architectural pattern. In MVC the this pattern is used to decouple the model from the view. View represents the Observer and the model is the Observable object.• The introduction of delegates and events provides a new and powerful means of implementing the Observer pattern