public void MakeAllFlyLike(IFlyVisitor visitor) { foreach (var duck in _list) { duck.Fly(visitor); } }
public override void Fly(IFlyVisitor visitor) { visitor.Visit(this); }
public abstract void Fly(IFlyVisitor visitor);