Example #1
0
 public Cat() : base("Cat")
 {
     walkingBehavior = new SimpleWalk();
 }
Example #2
0
 public Duck() : base("Duck")
 {
     walkingBehavior  = new SimpleWalk();
     swimmingBehavior = new SimpleSwim();
     flyingBehavior   = new SimpleFly();
 }