public double cost() { double price = 0.0; for (Topping topping : toppings) { price += topping.cost(); } return price + cost; }