static void Main(string[] args) { var a = new Coffee(); var b = new Tea(); a.prepareRecipe(); b.prepareRecipe(); Console.ReadKey(); }
public CoffeeWithSugar(Coffee coffee, int sugarQuantity) : base(coffee) { this.sugarQuantity = sugarQuantity; }