Exemplo n.º 1
0
        public static void Main()
        {
            ConcreteComponent comp = new ConcreteComponent();
            Decorator         deco = new ConcreteDecorator1(new ConcreteDecorator2(comp));

            deco.Operation();
        }
Exemplo n.º 2
0
 public static void Main()
 {
     ConcreteComponent comp = new ConcreteComponent();
     Decorator deco = new ConcreteDecorator1(new ConcreteDecorator2(comp));
     deco.Operation();
 }