Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Developer woodDev   = new WoodDeveloper("FGK build");
            House     woodHouse = woodDev.Create();

            Developer stoneDev   = new StoneDeveloper("IIE house");
            House     stoneHouse = stoneDev.Create();
        }
Ejemplo n.º 2
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();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 4
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();
        }
Ejemplo n.º 5
0
        static void Main(string[] args)
        {
            Developer dev    = new PanelDeveloper("ООО КирпичСтрой");
            House     house2 = dev.Create();

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

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

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

            Console.ReadLine();
        }
Ejemplo n.º 7
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();
        }
Ejemplo n.º 8
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();
        }
Ejemplo n.º 9
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();
        }