Hi,/P>
A few days back on of my senior talked about different pattern and how useful they can be in the process of development. We were talking about the observer pattern. So I thought I will write a bit about the observer design pattern./P>
Based on the principal of implicit invocation, Observer design pattern (also known as publish Subscribe) is used in programming to observer the state of and object in a program. In many programming language the issue of this pattern are handled in native event handling syntax./P>
The bottom line of the pattern is that one or more listeners or observer (objects) register themselves to observer an event, which is raised by the subject. The object that raises the event maintains a collection of all the observer or listeners. We can also say that the pattern defines a one to many dependencies between objects so that one the state of a object is changed all the dependent are notified and