Wednesday, 4 January 2012

Class-level Private and Protected Variables

Camel Case with a leading underscore. Always indicate 'Protected' or 'Private' in the declaration. The leading underscore is the only controversial thing in this document.
The leading character helps to prevent name collisions in constructors (a parameter and a private variable have the same name).