Im compiled from a java le class 2 my instance

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 16 8 1/28/10 More on Formatting and Laying out Classes public class ClassName { public staIc type var1; private staIc type var4; public type var5; private type var8; public ClassName(…) { … } public void someMethod(…) { … } private void someMethodHelper(…) { … } These should ALL } Order: 1. Class (static) Variables public, protected, package, private 2. Instance Variables public, protected, package, private 3. Constructors 4. Methods grouped by functionality main method should go at bottom have javadoc commen...
View Full Document

Ask a homework question - tutors are online