Example #1
0
 public override void LayEgg()
 {
     if (this.Weight > 1000)
     {
         Egg egg = new Egg(this);
         this.Eggs.Add(egg);
         this.Weight -= egg.Weight;
     }
 }
Example #2
0
 public override void LayEgg()
 {
     if (this.Weight > 1500)
     {
         Egg ei = new Egg(this);
         this.Weight -= ei.Weight;
         this.Eggs.Add(ei);
     }
 }
Example #3
0
        public void LayEgg()
        {
            Egg <Platibus> egg = new Egg <Platibus>(this);

            Egg <IEggProducer> egg1 = new Egg <IEggProducer>(this);
        }