示例#1
0
 static void Main(string[] args)
 {
     Coffee coffee = new Coffee();
     Tea tea = new Tea();
     coffee.PrepareRecipe();
     Console.WriteLine();
     tea.PrepareRecipe();
 }
示例#2
0
        static void Main(string[] args)
        {
            CoffeineBeverage coffee = new Coffee();
            CoffeineBeverage tea    = new Tea();

            coffee.PrepareRecipe();
            Console.WriteLine("////////////////////////////////");
            tea.PrepareRecipe();
            Console.ReadKey();
        }
示例#3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Tea    tea    = new Tea();
            Coffee coffee = new Coffee();

            Console.WriteLine("\nMaking Tea...");
            tea.PrepareRecipe();

            Console.WriteLine("\nMaking Coffee...");
            coffee.PrepareRecipe();
        }
        static void Main(string[] args)
        {
            Tea    tea    = new Tea();
            Coffee coffee = new Coffee();

            Console.WriteLine("Making tea...");
            tea.PrepareRecipe();

            Console.WriteLine("\nMaking coffee...");
            coffee.PrepareRecipe();

            Console.Read();
        }
示例#5
0
        static void Main(string[] args)
        {
            HotDrink tea = new Tea();

            Console.WriteLine("Preparing tea!");
            tea.PrepareRecipe();

            Console.WriteLine();

            HotDrink coffee = new Coffee();

            Console.WriteLine("Preparing coffee!");
            coffee.PrepareRecipe();
        }