i would like to ask what is better to use, factory or builder design pattern, in my case.
Long story short, i have class Action with parameters: transferRate, recoverRate, cost and name. In my program i will have array with 30 (always same) Action objects. Every has always same setup of parameters.
I am thinking more about using factory but if you give me advice which is better, I would appreciate that.
Aucun commentaire:
Enregistrer un commentaire