vendredi 11 janvier 2019

Creation of classes in Factory design pattern

In the factory design pattern, we write logic for deciding which class to be loaded in the factory class. Suppose I have a choice of 100 classes, so for all 100 do I need to write conditions in factory class? Or there is some other way?

Aucun commentaire:

Enregistrer un commentaire