Exemplo n.º 1
0
        static void Main(string[] args)
        {
            AbstractFactory factory1 = new Factory1();
            Client cl1 = new Client(factory1);
            cl1.Run();

            AbstractFactory factory2 = new Factory2();
            Client cl2 = new Client(factory2);
            cl2.Run();

            Console.ReadKey();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            AbstractFactory factory1 = new Factory1();
            Client          cl1      = new Client(factory1);

            cl1.Run();

            AbstractFactory factory2 = new Factory2();
            Client          cl2      = new Client(factory2);

            cl2.Run();

            Console.ReadKey();
        }