static void Main() { Console.WriteLine("Какой коффе: americano, latte, espresso, capucino"); string coffee = Console.ReadLine().ToLower(); Console.WriteLine(); CoffeeMaker coffeeMaker = new CoffeeMaker(); coffeeMaker.MakeCoffe(coffee); }
public static void DoAction(CoffeeMaker coffee) { coffee.MakeCoffe(); Console.WriteLine("Details about the coffee: " + coffee.GetDetails()); }