Class Design Hints in Java
Some hints that will make your classes more acceptable in well-mannered OOP circles:
1. Always keep data private.
This is first and foremost; doing anything else violates encapsulation. You
may need to write an accessor or mutator method occasionally...
phamduyhieu.com3 min read