Write down the sequence of declaration for the class and interface. 5 marks
Classes and Interfaces
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).
0 comments
Post a Comment