Пример #1
0
 public GoldFish(Swimmable s)
 {
     sw = s;
 }
Пример #2
0
 public Duck(Swimmable s, Walkable w)
 {
     this.s = s;
     this.w = w;
 }
Пример #3
0
 public Human(Walkable w, Swimmable s)
 {
     this.s = s;
     this.w = w;
 }