public class Addition extends Decorator { private String additionType; private double additionCost; public Addition(DrinkItem d, String type, double cost) { super(d); additionType = type; additionCost = cost; } public double getCost() { return getDrinkItem().getCost() + additionCost; } public String getDescription() { return getDrinkItem().getDescription() + " with " + additionType; } }