Beispiel #1
0
 public Elephant()
 {
     SleepBehavior = new SleepShort();
     EatBehavior   = new EatPlant();
 }
Beispiel #2
0
 public Giraffe()
 {
     SleepBehavior = new SleepShort();
     EatBehavior   = new EatPlant();
 }