The registerAsObserver Method
observers are added to the Vector
public void registerAsObserver(CounterObserver observer) {
observers.addElement(observer);
observer.counterHasChanged(this);
}
Previous slide
Next slide
Back to first slide
View graphic version