Skip to main content

All Questions

22 votes
4 answers
5k views

Constructing an object: should I expose or hide parameters passed to the constructor?

I've a habit I just mechanically do without even thinking too much about it. Whenever a constructor is waiting for some parameters, I consider this a public information that should be available by ...
Jérôme MEVEL's user avatar