public class Observable extends java.lang.Object implements QuackObservable
Constructor and Description |
---|
Observable(QuackObservable duck) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator |
getObservers() |
void |
notifyObservers() |
void |
registerObserver(Observer observer) |
public Observable(QuackObservable duck)
public void registerObserver(Observer observer)
registerObserver
in interface QuackObservable
public void notifyObservers()
notifyObservers
in interface QuackObservable
public java.util.Iterator getObservers()