Пример #1
0
        public Warmedrank(Enum.Drank naam)
            : base(naam)
        {
            switch (naam)
            {
            case Enum.Drank.Koffie:
                Prijs = 2.5m;
                break;

            case Enum.Drank.Thee:
                Prijs = 2.5m;
                break;

            default:
                break;
            }
        }
        public Frisdrank(Enum.Drank naam)
            : base(naam)
        {
            switch (naam)
            {
            case Enum.Drank.Water:
                Prijs = 2.0m;
                break;

            case Enum.Drank.Limonade:
                Prijs = 2.0m;
                break;

            case Enum.Drank.CocaCola:
                Prijs = 2.0m;
                break;

            default:
                break;
            }
        }
Пример #3
0
 public Warmedrank(Enum.Drank naam) : base(naam)
 {
     Prijs = 2.50m;
 }
Пример #4
0
 public Drank(Enum.Drank naam)
 {
     this.Naam = naam;
 }
Пример #5
0
 public Drank(Enum.Drank naam)
 {
     Naam = naam;
 }