static void Main(string[] args) { var drink = new Drink(); drink.UseDrink(); var juice = new Juice(); //juice.DrinkJuice(); var adapted = new JuiceToDrink(juice); adapted.UseDrink(); }
public JuiceToDrink(Juice juice) { _juice = juice; }