Exemplo n.º 1
0
    public static void Main()
    {
        Console.WriteLine("Hello World");
        IComponent comp = new Component();

        Console.WriteLine(comp.Operation());
        Decorator comp2 = new Decorator(comp);

        Console.WriteLine(comp2.Operation() + comp2.AddedBehaviour() + comp2.AddedState);
    }