Beispiel #1
0
        static void Main(string[] args)
        {
            Tea MyTea = new Tea();

            MyTea.PrepareRecipe();
            Coffee MiCafe = new Coffee();

            MiCafe.PrepareRecipe();
        }
Beispiel #2
0
        private static void TestStarBuzz()
        {
            Console.WriteLine("\r\nDrink 1...");
            ICaffeineBeverage myDrink = new Tea();

            myDrink.PrepareRecipe();

            Console.WriteLine("\r\nDrink 2...");
            myDrink = new Coffee();
            myDrink.PrepareRecipe();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Make Coffee:");
            Coffee coffee = new Coffee();

            coffee.PrepareRecipe();

            Console.WriteLine("\nMake Tea:");
            Tea tea = new Tea();

            tea.PrepareRecipe();
        }
Beispiel #4
0
        static void Main(string[] args)
        {
            Beverage myCoffee = new Coffee();

            myCoffee.PrepareRecipe();

            Console.WriteLine("");

            Beverage myTea = new Tea();

            myTea.PrepareRecipe();

            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            Tea tea = new Tea();

            tea.PrepareRecipe();

            Console.WriteLine();

            Coffee coffee = new Coffee();

            coffee.PrepareRecipe();

            Console.ReadKey();
        }
        void Start()
        {
            Tea tea = new Tea();

            tea.PrepareRecipe();
            Coffee coffee = new Coffee();

            coffee.PrepareRecipe();
            CoffeineBeverage teaBase    = tea;
            CoffeineBeverage coffeeBase = coffee;

            teaBase.PrepareRecipe();
            coffeeBase.PrepareRecipe();
        }