public static void main(String[] args) { Coffee caramelMacchiato = new CaramelMacchiato(); System.out.println("\n-------[caramel macchiato]-------"); caramelMacchiato.prepareRecipe(); }
public static void main(String[] args) { Tea tea = new Tea(); Coffee coffee = new Coffee(); System.out.println("Making tea..."); tea.prepareRecipe(); System.out.println("Making coffee..."); coffee.prepareRecipe(); }
public static void main(String[] args) { Tea tea = new Tea(); Coffee coffee = new Coffee(); System.out.println("\nMaking tea..."); tea.prepareRecipe(); System.out.println("\nMaking coffee..."); coffee.prepareRecipe(); TeaWithHook teaHook = new TeaWithHook(); CoffeeWithHook coffeeHook = new CoffeeWithHook(); System.out.println("\nMaking tea..."); teaHook.prepareRecipe(); System.out.println("\nMaking coffee..."); coffeeHook.prepareRecipe(); }
public static void main(String[] args) { Tea tea = new Tea(); Coffee coffee = new Coffee(); coffee.prepareRecipe(); tea.prepareRecipe(); }