Observer Pattern in Java
Observer Pattern in Java
The Observer pattern defines one to many relationship between a group of objects so that when one objects changes state, all of its dependents are notified. There two types of actors here :
“Subject and Observers”
The Subject manages some sort of data and the Observers have subscribed to be updated when the data changes.
Create Subject interface
For implementing the Subject, we need to…
View On WordPress














