Exemplo n.º 1
0
 public void EiLegen()
 {
     if (this.Gewicht > 2000)
     {
         Ei ei = new Ei(this);
         Eier.Add(ei);
         this.Gewicht -= ei.Gewicht;
     }
 }
Exemplo n.º 2
0
 public override void EiLegen()
 {
     if (this.Gewicht > 1500)
     {
         Ei ei = new Ei(this);
         this.Gewicht -= ei.Gewicht;
         this.Eier.Add(ei);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Die Henne legt ein Ei.
 /// </summary>
 public void EiLegen()
 {
     if (this.Gewicht > 1500)
     {
         Ei ei = new Ei(this);
         this.Eier.Add(ei);
         //this.Gewicht = this.Gewicht - ei.Gewicht;
         this.Gewicht -= ei.Gewicht;
     }
 }