Interface AbstractFactory

All Known Implementing Classes:
ConcreteFactory1, ConcreteFactory2

public interface AbstractFactory
Abstract Factory interface. Defines methods for creating families of related products.
  • Method Details

    • createProductA

      ProductA createProductA()
      Creates a product of type A.
      Returns:
      A product implementing the ProductA interface.
    • createProductB

      ProductB createProductB()
      Creates a product of type B.
      Returns:
      A product implementing the ProductB interface.