Example #1
0
        public void NotifyObservers()
        {
            IEnumerator <IQuackable> enumerator = quackers.GetEnumerator();

            while (enumerator.MoveNext())
            {
                IQuackable quacker = enumerator.Current;
                quacker.NotifyObservers();
            }
        }
 public void NotifyObservers()
 {
     _duck.NotifyObservers();
 }
Example #3
0
 public void NotifyObservers()
 {
     _quackable.NotifyObservers();
 }
 public void NotifyObservers()
 {
     quacker.NotifyObservers();
 }