internal void Interact(AbstractProductA _abstractProductA)
 {
     throw new NotImplementedException();
 }
Example #2
0
 public abstract void Interact(AbstractProductA a);
Example #3
0
 public Client(AbstractFactory factory)
 {
     _abstractProductB = factory.CreateProductB();
     _abstractProductA = factory.CreateProductA();
 }
Example #4
0
 public override void Interact(AbstractProductA a)
 {
     Console.WriteLine(GetType().Name +
       " interacts with " + a.GetType().Name);
 }
Example #5
0
 public abstract void Interact(AbstractProductA productA);
Example #6
0
 public override void Interact(AbstractProductA productA)
 {
     Console.WriteLine($"{this.GetType().Name} interacts with {productA.GetType().Name}");
 }
Example #7
0
 public override void Interact(AbstractProductA a)
 {
     Console.WriteLine(this.GetType().Name +
                       " interacts with " + a.GetType().Name);
 }
Example #8
0
 public Client(AbstractFactory factory)
 {
     _abstractProductB = factory.CreateProductB();
     _abstractProductA = factory.CreateProductA();
 }