Design Patterns, Behavioural Design, Java, Software Development.
System.out.println("Brewing coffee"); } @Override void addCondiments() { System.out.println("Adding sugar and milk"); } } // Concrete subclass implementing specific beverage - Tea class Tea extends Beverage { @Override void brew() { System.out.println("Steeping tea"); } @Override void