Skip to main content

All Questions

2 votes
2 answers
14k views

Initialize in Field, Constructor, or Argument

If I know what a field will be initialized to, should I initialize it in the field, constructor, or receive it as a parameter? I am asking about best practices. All three options effectively provide ...
Evorlor's user avatar
  • 1,563