Example #1
0
 public Milk(BaseDrink drink, Amount milkAmount)
 {
     _nextDrink = drink;
     MilkAmount = milkAmount;
     BasePrice += 0.25;
     Name       = _nextDrink.Name;
 }
 public Sugar(BaseDrink drink, Amount sugarAmount)
 {
     _nextDrink  = drink;
     SugarAmount = sugarAmount;
     BasePrice   = 0.15;
     Name        = _nextDrink.Name;
 }