public void NotifyObservers() { IEnumerator <IQuackable> enumerator = quackers.GetEnumerator(); while (enumerator.MoveNext()) { IQuackable quacker = enumerator.Current; quacker.NotifyObservers(); } }
public void NotifyObservers() { _duck.NotifyObservers(); }
public void NotifyObservers() { _quackable.NotifyObservers(); }
public void NotifyObservers() { quacker.NotifyObservers(); }