May 26, 2018
Allow other classes and objects to respond to events in yours
If you have ever used Java, you may have run across the java.util.Observable class and the java.util.Observer interface. Using them, you can decouple an object from the one or more objects that wish to be notified whenever particular events occur. ClassObservable allows you to mimic this action.