예제 #1
0
        static void Main(string[] args)
        {
            var tea = new Tea();

            tea.PrepareRecipe();


            var teaWithHook   = new TeaWithHook();
            var coffeWithHook = new CoffeeWithHook();

            teaWithHook.PrepareRecipe();
            coffeWithHook.PrepareRecipe();
        }
예제 #2
0
        static void Main(string[] args)
        {
            CoffeeWithHook coffeeHook = new CoffeeWithHook();

            coffeeHook.prepareRecipe();
        }