Example #1
0
 public void MakeAllFlyLike(IFlyVisitor visitor)
 {
     foreach (var duck in _list)
     {
         duck.Fly(visitor);
     }
 }
Example #2
0
 public override void Fly(IFlyVisitor visitor)
 {
     visitor.Visit(this);
 }
Example #3
0
 public abstract void Fly(IFlyVisitor visitor);