How much code should one put in a constructor?

前端 未结 9 2201
一整个雨季
一整个雨季 2020-12-15 05:34

I was thinking how much code one should put in constructors in Java? I mean, very often you make helper methods, which you invoke in a constructor, but sometimes there are s

9条回答
  •  北海茫月
    2020-12-15 06:28

    Take a look at this SO question. Even though the other one is for C++, the concepts are still very similar.

提交回复
热议问题