public void Learn() { CaffeineBeverage tea = new Tea(); CaffeineBeverage coffee = new Coffee(); CaffeineBeverageWithHook coffeeHook = new CoffeeWithHook(); tea.prepareRecipe(); coffee.prepareRecipe(); coffeeHook.prepareRecipe(); }