Ad Code

Narrate the manner for the organization of Class and Interface declarations

Narrate the manner for the organization of Class and Interface declarations


Class and Interface declarations should be organized in the following manner:
1. Class/Interface documentation.
2. Class or interface statement.
3. Class (static) variables in the order public, protected, package (no access modifier), private.
4. Instance variables in the order public, protected, package (no access modifier), private.
5. Constructors.
6. Methods (no specific order).
Reactions

Post a Comment

0 Comments