According to GoF definition, observer pattern defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically . It is also referred to as the publish-subscribe pattern.
Read more