Java, Design Patterns, Structural Design Pattern, Software Engineering.
"Espresso"; } @Override public double cost() { return 1.99; } } public class Latte implements Coffee { @Override public String getDescription() { return "Latte"; } @Override public double cost() { return 2.49; } } Now, let’s define decorators for adding toppings: public abstract class