Example #1
0
 private void setDescription()
 {
     if (beverage != null)
     {
         description = beverage.getDescription() + ", " + condimentDescription;
     }
     else
     {
         description = condimentDescription;
     }
 }
Example #2
0
 private void setDescription()
 {
     description = beverage.getDescription() + ", Whip";
 }
Example #3
0
 private void setDescription()
 {
     description = beverage.getDescription() + ", Mocha";
 }
Example #4
0
 private void setDescription()
 {
     description = beverage.getDescription() + ", Steamed Milk";
 }
Example #5
0
 public Condiment(Beverage beverage, Beverage condiment) : this(condiment.getDescription(), condiment.cost())
 {
     this.beverage = beverage;
     setStuff();
 }