mercredi 7 octobre 2020

Can a 'Factory' Design Pattern have more than 1 abstract type in a factory?

Please note; Factory, not Abstract Factory.

Say, there is an interface Shape with concrete classes like Pentagon. Let's say an abstract class Quadrilateral implements Shape and has its own concrete types like Square.

Is this still considered a Factory Method?

Aucun commentaire:

Enregistrer un commentaire