Search:

Type: Posts; User: helloworld922

Search: Search took 0.11 seconds.

  1. Re: Rate this code on a scale from 1 - 10 and please suggest some improvements.

    Getters/setters are preferred because they help to abstract the code design, and give you more precise control over how your class is used/accessed.

    For example, consider the ArrayList class....
  2. Re: Rate this code on a scale from 1 - 10 and please suggest some improvements.

    Use of non-final public fields is generally discouraged, use private field with getters/setters instead.

    There are a variety of fields at the top which utilize default access restrictions, again...
Results 1 to 2 of 2