public override void LayEgg() { if (this.Weight > 1000) { Egg egg = new Egg(this); this.Eggs.Add(egg); this.Weight -= egg.Weight; } }
public override void LayEgg() { if (this.Weight > 1500) { Egg ei = new Egg(this); this.Weight -= ei.Weight; this.Eggs.Add(ei); } }
public void LayEgg() { Egg <Platibus> egg = new Egg <Platibus>(this); Egg <IEggProducer> egg1 = new Egg <IEggProducer>(this); }