// Constructor public Client(AbstractFactory factory) { _abstractProductB = factory.CreateProductB(); _abstractProductA = factory.CreateProductA(); }
// Constructor public Client(AbstractFactory factory) { AbstractProductB = factory.CreateProductB(); AbstractProductA = factory.CreateProductA(); }
// Конструктор public Client(AbstractFactory factory) { _abstractProductPC = factory.CreatePC(); _abstractProductSmartphone = factory.CreateSmartphone(); _abstractProductConsolka = factory.CreateConsolka(); }