Пример #1
0
        static void Main(string[] args)
        {
            Director d = new Director(new Toyota());

            d.CreateProduct();
            Product p = d.Construct();

            p.ShowInfo();

            Console.WriteLine("----------------------------------------------------------------------------");

            Director t = new Director(new Smart());

            t.CreateProduct();
            Product o = t.Construct();

            o.ShowInfo();

            Console.WriteLine("----------------------------------------------------------------------------");

            Director s = new Director(new BMW());

            s.CreateProduct();
            Product ps = s.Construct();

            ps.ShowInfo();
            Console.ReadLine();
        }