0

Abstract Factory Python Example

bmiselis 5 років тому 0

Hi,

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?