Observer

From Wiki :-)
Jump to navigation Jump to search

The Observer design pattern allows objects called subjects to notify changes to objects called observers.

The subjects attach to its observers.

When there is a change in the subject it notifies to its list of observers.