public void Quack()
        {
            var enumerator = quackables.GetEnumerator();

            while (enumerator.MoveNext())
            {
                Quackable quackable = enumerator.Current;
                quackable.Quack();
            }
        }
 public void Quack()
 {
     duck.Quack();
     numberOfQuacks++;
     NotifyObservers();
 }
Exemple #3
0
        public void Quack()
        {
            duckObservable.Quack();

            _quackCounter++;
        }
 static void Simulator(Quackable duck)
 {
     duck.Quack();
 }
Exemple #5
0
 void Simulate(Quackable duck)
 {
     duck.Quack();
 }
Exemple #6
0
 void Simulate(Quackable duck)
 {
     duck.Quack();
 }