Observer Pattern – a Glittering Gold
Observer pattern is a design pattern that allows a subject, to maintain list of observers & notify them automatically when the object's state changes.
Observer pattern is a design pattern that allows a subject, to maintain list of observers & notify them automatically when the object's state changes.
Design patterns can be used to structure the code in better way which result easy maintainability and easy to understand. A proper design pattern also led to less bugs and…