public void Run() { Tea tea = new Tea(); Coffee coffee = new Coffee(); Console.WriteLine("Preparing tea..."); tea.PrepareRecipe(); Console.WriteLine(); Console.WriteLine("Preparing coffee..."); coffee.PrepareRecipe(); }
static void Main(string[] args) { Tea tea = new Tea(); Coffee coffee = new Coffee(); Console.WriteLine("\nMaking tea..."); tea.PrepareRecipe(); Console.WriteLine("\nMaking coffee..."); coffee.PrepareRecipe(); Console.ReadLine(); }
public 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(); TeaWithHook teaHook = new TeaWithHook(); CoffeeWithHook coffeeHook = new CoffeeWithHook(); Console.WriteLine("\nMaking tea..."); teaHook.PrepareRecipe(); Console.WriteLine("\nMaking coffee..."); coffeeHook.PrepareRecipe(); }
static void Main(string[] args) { Tea tea = new Tea(); Coffee coffee = new Coffee(); Console.WriteLine("Making tea..."); tea.PrepareRecipe(); //Console.WriteLine(); Console.WriteLine("\nMaking Coffee..."); coffee.PrepareRecipe(); TeaWiwhHook teaWiwhHook = new TeaWiwhHook(); CoffeeWithHook coffeeWithHook = new CoffeeWithHook(); Console.WriteLine("\n차 준비중...."); teaWiwhHook.PrepareReceipe(); Console.WriteLine("\n커피 준비중...."); coffeeWithHook.PrepareReceipe(); }