public void PrepareDrink()
protected abstract void Brew();
protected abstract void AddCondiments();
protected void BoilWater()
Console.WriteLine("Hirviendo agua");
protected void PourInCup()
Console.WriteLine("Vertiendo en la taza");
protected override void Brew()
Console.WriteLine("Colando café");
protected override void AddCondiments()
Console.WriteLine("Agregando azúcar y leche");
protected override void Brew()
Console.WriteLine("Infusionando té");
protected override void AddCondiments()
Console.WriteLine("Agregando limón");
static void Main(string[] args)
Console.WriteLine("Preparando café:");
HotDrink coffee = new Coffee();
Console.WriteLine("Preparando té:");
HotDrink tea = new Tea();