jeudi 28 février 2019

What design pattern would be most appropriate

Suppose we have a set of several service classes (A,B,C,D,E,F), and the number of classes is quite large and may change. There are also classes that use them. First, i don't want to write long constructors. Secondly, for example, a new service class appears today, then it needs to be added to classes A, B, C, and tomorrow another service class, which is used by D, E, F. What design pattern would be most appropriate in this case?

Aucun commentaire:

Enregistrer un commentaire