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

            coffee.PrepareRecipe();
            Console.WriteLine("////////////////////////////////");
            tea.PrepareRecipe();
            Console.ReadKey();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }