Example #1
0
        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;
            }
        }
Example #2
0
 public Dier(Groottes grootte, bool eetVlees, string naam)
 {
     Grootte  = grootte;
     EetVlees = eetVlees;
     Naam     = naam;
 }
Example #3
0
 public Herbivoor(Groottes grootte) : base(grootte)
 {
     Dieet = DieetSoorten.Herbivoor;
 }
 public Carnivoor(Groottes grootte) : base(grootte)
 {
     Dieet = DieetSoorten.Carnivoor;
 }