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