public Dier(Groottes grootte) { this.Grootte = grootte; switch (Grootte) { case Groottes.Klein: this.Gewicht = 1; break; case Groottes.Gemiddeld: this.Gewicht = 3; break; case Groottes.Groot: this.Gewicht = 5; break; default: break; } }
public Dier(Groottes grootte, bool eetVlees, string naam) { Grootte = grootte; EetVlees = eetVlees; Naam = naam; }
public Herbivoor(Groottes grootte) : base(grootte) { Dieet = DieetSoorten.Herbivoor; }
public Carnivoor(Groottes grootte) : base(grootte) { Dieet = DieetSoorten.Carnivoor; }