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

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