Пример #1
0
 public Fish() : base("Fish")
 {
     swimmingBehavior = new SimpleSwim();
 }
Пример #2
0
 public Duck() : base("Duck")
 {
     walkingBehavior  = new SimpleWalk();
     swimmingBehavior = new SimpleSwim();
     flyingBehavior   = new SimpleFly();
 }
Пример #3
0
 public Human() : base("Human")
 {
     walkingBehavior  = new TwoLegsWalk();
     swimmingBehavior = new SimpleSwim();
 }