public void Quack() { var enumerator = quackables.GetEnumerator(); while (enumerator.MoveNext()) { Quackable quackable = enumerator.Current; quackable.Quack(); } }
public void Quack() { duck.Quack(); numberOfQuacks++; NotifyObservers(); }
public void Quack() { duckObservable.Quack(); _quackCounter++; }
static void Simulator(Quackable duck) { duck.Quack(); }
void Simulate(Quackable duck) { duck.Quack(); }
void Simulate(Quackable duck) { duck.Quack(); }