Example #1
0
 virtual double cost()
 {
     return beverage->cost() + costs*beverage->getSize();
 }
Example #2
0
 CondimentDecorator(Beverage *beverage)
 {
     size = beverage->getSize();
 }