How much work should be done in a constructor?

后端 未结 18 967
离开以前
离开以前 2020-11-27 17:40

Should operations that could take some time be performed in a constructor or should the object be constructed and then initialised later.

For example when constructi

18条回答
提交回复
热议问题