001package headfirst.decorator.starbuzz; 002 003public class Mocha extends CondimentDecorator { 004 Beverage beverage; 005 006 public Mocha(Beverage beverage) { 007 this.beverage = beverage; 008 } 009 010 public String getDescription() { 011 return beverage.getDescription() + ", Mocha"; 012 } 013 014 public double cost() { 015 return .20 + beverage.cost(); 016 } 017}