static void Main(string[] args) { Tea MyTea = new Tea(); MyTea.PrepareRecipe(); Coffee MiCafe = new Coffee(); MiCafe.PrepareRecipe(); }
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(); }
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(); }
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(); }