Beispiel #1
0
        public override decimal cost()
        {
            decimal money = _beverage.cost();

            switch (getSize())
            {
            case BeverageSize.little:
                money += 0.15m;
                break;

            case BeverageSize.normal:
                money += 0.2m;
                break;

            case BeverageSize.big:
                money += 0.25m;
                break;
            }
            return(money);
        }
Beispiel #2
0
 public decimal Money()
 {
     return(houseBlendMMSW.cost());
 }
Beispiel #3
0
 public override decimal cost()
 {
     return(0.15m + _beverage.cost());
 }