Beispiel #1
0
 public void InteractWith(IElementB elementB)
 {
     Console.WriteLine($"{nameof(ElementA)} interacts with {nameof(ElementB)}");
 }
 public Client(IFactory factory)
 {
     _elementA = factory.CreateElementA();
     _elementB = factory.CreateElementB();
 }