Monday, November 22, 2010

Java - General Rules of Thumb


In general, instance variables should usually be declared private, and methods should usually be declared public (there are times when it is also appropriate to declare methods private, when you only what other methods in the same class to be able to access the method)

No comments:

Post a Comment