Пример #1
0
 public Elephant()
 {
     SleepBehavior = new SleepShort();
     EatBehavior   = new EatPlant();
 }
Пример #2
0
 public Giraffe()
 {
     SleepBehavior = new SleepShort();
     EatBehavior   = new EatPlant();
 }