Apex Constants¶
Naming standards for Apex Constants.
Rules for Naming¶
Capitalization¶
Name¶
<Capitalized words>
Comments¶
Should be descriptive of the constant without using too many words.
Wrong Examples¶
Name | Reason |
---|---|
maxCharacters |
Indistinguishable from a variable. |
MAXIMUM_NUMBER_OF_CHARACTERS |
Too long. |
Good Examples¶
Name | Reason |
---|---|
MAX_CHARACTERS |