Beispiel #1
0
        public override int CalculateDrinkPrice(DrinkSizes drinkSize)
        {
            switch (drinkSize)
            {
            case DrinkSizes.small:
                return(5);

            case DrinkSizes.medium:
                return(8);

            case DrinkSizes.large:
                return(10);

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Beispiel #2
0
 public override int CalculateDrinkPrice(DrinkSizes drinkSiz)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 public abstract int CalculateDrinkPrice(DrinkSizes drinkSiz);