/** * This is an example for COP3337 Spring 2010 * * @author Bill Kraynek */ public class Honey extends Decorator { public Honey(DrinkItem d) { super(d); } public double getCost() { return getDrinkItem().getCost() + 0.40; } public String getDescription() { return getDrinkItem().getDescription() + "with honey "; } }