lundi 5 novembre 2018

design pattern / different approach for building different objects

I have a piece of code that I need to continue development on. Part of it is a class which has a lot of different elements which are instantiated when the class is built. Theoretically, there can be more classes in the future to built which will result in another new line to be added. Right now there are 17 lines of new up code. I'm trying to think of a better way to do it instead of the current one of just adding a new line for creating a new (and different) object

Aucun commentaire:

Enregistrer un commentaire