Exemple #1
0
        static void Main(string[] args)
        {
            Developer devevloperA = new PanelDeveloper("CityTower");
            House     panelHouse  = devevloperA.Create();

            Developer developerB  = new WoodDeveloper("Private Developer");
            House     priateHouse = developerB.Create();

            Console.ReadLine();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Developer dev    = new PanelDeveloper("First developer");
            House     house2 = dev.Create();

            dev = new WoodDeveloper("Second Developer");
            House house = dev.Create();

            Console.ReadLine();
        }
Exemple #3
0
        static void Main(string[] args)
        {
            Developer developer = new WoodDeveloper("wood");
            House     house     = developer.Create();

            developer = new PanelDeveloper("panel");
            House house1 = developer.Create();

            Console.ReadKey();
        }
Exemple #4
0
        static void Main(string[] args)
        {
            Developer dev    = new PanelDeveloper("ООО КирпичСтрой");
            House     house2 = dev.Create();

            dev = new WoodDeveloper("Частный застройщик");
            House house = dev.Create();

            Console.ReadLine();
        }
Exemple #5
0
        public void Run()
        {
            Developer dev    = new PanelDeveloper("ООО КирпичСтрой");
            House     house2 = dev.Create();

            dev = new WoodDeveloper("Частный застройщик");
            House house = dev.Create();

            Console.ReadLine();
        }
Exemple #6
0
        static void Main(string[] args)
        {
            Developer developer = new PanelDeveloper("ООО КирпичСтрой");

            developer.PrintDev();
            House housePanel = developer.Create();

            Console.WriteLine();

            developer = new WoodDeveloper("Частный застройщик");
            developer.PrintDev();
            House houseWood = developer.Create();

            Console.ReadLine();
        }
Exemple #7
0
        static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.Title           = "Фабричный метод";
            // Выбираем строительную организцию
            Developer developer = new PanelDeveloper("ООО Кирпич - Строй");

            // Строим кирпичный домик при помощи фабричного метода
            House brickHouse = developer.Create();

            developer = new WoodDeveloper("Частный зстройщик");

            House woodHouse = developer.Create();

            Console.ReadKey();
        }
Exemple #8
0
        static void Main(string[] args)
        {
            Developer dev    = new PanelDeveloper("ООО КирпичСтрой");
            House     house2 = dev.Create();

            dev = new WoodDeveloper("Частный застройщик");
            House house = dev.Create();

            CarsFactory ferraryFactory = new FerraryFactory("FerraryFactory");

            ferraryFactory.CreateCar();

            CarsFactory lamborginyFactory = new LamborginyFactory("LamborginyFactory");

            lamborginyFactory.CreateCar();

            Console.ReadLine();
        }