Class with too many parameters: better design strategy?

后端 未结 13 974
醉酒成梦
醉酒成梦 2020-12-04 08:29

I am working with models of neurons. One class I am designing is a cell class which is a topological description of a neuron (several compartments connected together). It ha

13条回答
  •  余生分开走
    2020-12-04 08:52

    You could create a class for your parameters.

    Instead passing a bunch of parameters, you pass one class.

提交回复
热议问题