Method modifiers should be given in the following order:
The
public static double square(double a);
is one of public, protected or private while includes volatile and transient. The most important lesson here is to keep the access modifier as the first modifier. Of the possible modifiers, this is by far the most important, and it must stand out in the method declaration. For the other modifiers, the order is less important, but it make sense to have a fixed convention.
Friday, September 17, 2010
Improving coding style into functions or methods
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment