public string Interact(AbstractProductA apa)
 {
     return string.Format("{0} + {1}.", ToString(), apa.ToString());
 }
示例#2
0
 public Client(Factory.AbstractFactory apf)
 {
     apa = apf.CreateProductA();
     apb = apf.CreateProductB();
 }