Exemple #1
0
        static void Main(string[] args)
        {
            CoffeineBeverage beverage1 = new Coffee();
            CoffeineBeverage beverage2 = new Tea();

            beverage1.Prepare();
            beverage2.Prepare();
        }
Exemple #2
0
        public void PrepareTea()
        {
            var tea = new Tea();

            tea.Prepare();
        }