Observer Pattern – Description and Example
The Observer pattern is such a popular design pattern that the jdk has provided a set of classes that make it easy to implement it. Here’s how we define the pattern : An Observer pattern allows multiple objects to “observe” or “listen to” the changes in one object. To explain the Observer pattern lets use … Read more