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