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(); } }
public override int CalculateDrinkPrice(DrinkSizes drinkSiz) { throw new NotImplementedException(); }
public abstract int CalculateDrinkPrice(DrinkSizes drinkSiz);