Friday, 22 April 2016

What is the good practice for visibility and immutability ?


Good practice is to : 
  • Make all fields private unless they need more visibility.
  • Make all fields final unless they needs to be mutable.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.