コード例 #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;
 }