home > resources > c++ coding standard > online version

Method Argument Names

  • The first character should be lower case.
  • All word beginnings after the first letter should be upper case as with class names.

Justification

  • You can always tell which variables are passed in variables.
  • You can use names similar to class names without conflicting with class names.

Example 2-5. Method Argument Names Example

class NameOneTwo
{
public:
    int startYourEngines(Engine& rSomeEngine, bool autoRestart);
}