﻿using System;

namespace Decorator
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            ComponentZ component = new ComponentZ();

            DecoratorA decoratorA = new DecoratorA(component);
            DecoratorB decoratorB = new DecoratorB(decoratorA);

            decoratorB.Operation();

            Console.ReadKey();
        }
    }
}
