A class can implement the Observer interface when it
wants to be informed of changes in observable objects.
public abstract void update(Observable o,
Object arg)
notifyObservers method to have all the object's
observers notified of the change.
notifyObservers
method.
![]()