示例#1
0
        static void Main(string[] args)
        {
            CaffeineBeverage myTea = new Tea();
            myTea.PrepareRecipe();

            CaffeineBeverage myCoffee = new Coffee();
            myCoffee.PrepareRecipe();
            Console.ReadLine();
        }
示例#2
0
        static void Main(string[] args)
        {
            Beverage tea = new Tea();
            tea.PrepareBeverage();

            Console.WriteLine("-----------------");

            Beverage coffee = new Coffee();
            coffee.PrepareBeverage();
        }