static void Main(string[] args) { var tea = new Tea(); tea.PrepareRecipe(); var teaWithHook = new TeaWithHook(); var coffeWithHook = new CoffeeWithHook(); teaWithHook.PrepareRecipe(); coffeWithHook.PrepareRecipe(); }
static void Main(string[] args) { CoffeeWithHook coffeeHook = new CoffeeWithHook(); coffeeHook.prepareRecipe(); }