Beispiel #1
0
 static void DrawDuck(Duck duck)
 {
     duck.Display();
 }
Beispiel #2
0
 static void Helper(Duck myDuck)
 {
     myDuck.Swim();
     myDuck.DoFly();
     myDuck.DoQuack();
 }
Beispiel #3
0
 static void Helper(Duck myDuck)
 {
     myDuck.Swim();
     myDuck.DoFly();
     myDuck.DoQuack();
 }