1. public class Pizza { 2. ArrayList toppings; 3. public final void addTopping(String topping) { 4. toppings.add(topping); 5. } 7. public void removeTopping(String topping) { 8. toppings.remove(topping); 9. } 10.} And: class PepperoniPizza extends Pizza { public void addTopping(String topping) { System.out.prin11n("Cannot add Toppings'"); } public void removeTopping(String topping){ System out.printIn("Cannot remove Pepperoni"); } } And: Pizza pizza = new PepperoniPizza(); pizza.addTopping("Mushrooms"); pizza.removeTopping("Pepperon i");