samedi 3 juin 2023

Should I implement factory pattern if one behaviour is common and rest are unique?

What problems are solved by factory design patterns?

I have studied Design Patterns: Elements of Reusable Object-Oriented Software but I still find difficulties to understand and implement it.

If I implement a factory design pattern and each object has one common behaviour and the rest are unique. So whether should I implement a factory design pattern for this or create a plain class?

Aucun commentaire:

Enregistrer un commentaire