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(); }
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(); }
static void Main(string[] args) { Developer developer = new WoodDeveloper("wood"); House house = developer.Create(); developer = new PanelDeveloper("panel"); House house1 = developer.Create(); Console.ReadKey(); }
static void Main(string[] args) { Developer dev = new PanelDeveloper("ООО КирпичСтрой"); House house2 = dev.Create(); dev = new WoodDeveloper("Частный застройщик"); House house = dev.Create(); Console.ReadLine(); }
public void Run() { Developer dev = new PanelDeveloper("ООО КирпичСтрой"); House house2 = dev.Create(); dev = new WoodDeveloper("Частный застройщик"); House house = dev.Create(); Console.ReadLine(); }
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(); }
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(); }
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(); }