Beispiel #1
0
        public override double GetCost()
        {
            switch (_drink.Size)
            {
            case 1:
                Price = 10;
                break;

            case 2:
                Price = 20;
                break;

            case 3:
                Price = 30;
                break;

            default:
                Price = 10;
                break;
            }
            return(_drink.GetCost() + Price);
        }