next up previous
Next: Statements Up: Classes Previous: Classes

Class body organization

The body of a class declaration should be organized in the following orders:
  1. Class variable field declarations
  2. Instance variable field declarations
  3. Constructor declarations
  4. Class method declarations
  5. Instance method declarations
These three elements, fields, constructors, and methods, are collectively referred to as "members".



Dennis Seah Mon Jul 17 11:43:42 2006