Abstract Factory Python Example

bmiselis 2 years ago 0


I've been reading your example on creating abstract factories in Python (https://refactoring.guru/design-patterns/abstract-factory/python/example) and noticed some incoherence:

when you implement a concrete factory, the comment states that signatures of the method should return the abstract product, but in the example a ConcreteProductA1/ConcreteProductB1 are returned. I guess it's wrong, right?