public static void Main() { ConcreteComponent comp = new ConcreteComponent(); Decorator deco = new ConcreteDecorator1(new ConcreteDecorator2(comp)); deco.Operation(); }
public static void Main() { ConcreteComponent comp = new ConcreteComponent(); Decorator deco = new ConcreteDecorator1(new ConcreteDecorator2(comp)); deco.Operation(); }