Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Phone     ap        = new Applephone();
            Decorator decorator = new Sticker(ap);

            decorator.Print();

            Decorator apa = new Accessories(ap);

            apa.Print();

            Sticker     s           = new Sticker(ap);
            Accessories accessories = new Accessories(s);

            accessories.Print();

            Console.ReadKey();
        }