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

            tea.prepareRecipe();
            coffee.prepareRecipe();
            coffeeHook.prepareRecipe();
        }