Functions

Functions follow the same rules as variables, which is camelCase.

ALL functions follow this rule, even static functions or member functions.

class Foo {
public:
    void runNarwhal();
}

int getVersion();

Macros follow the same rules as a constant

Functions should ALWAYS be some sort of verb.

Use getters and setters effectively to achieve this.

Last updated