2.3 Functions

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

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

public static void runsSomeWoawvering();
private int getHolesInWall();
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.

results matching ""

    No results matching ""