Many meanings of static
static (without a class) is the private in C-land with respect to the linker. Extern is the public and it is the default.
src.cpp:
//not included in the object's symbol table //throws warnings if no one calls it static int foo() { return 42; } //default: other linked objects can call this method extern int bar() { return 1337; } //does not throw warning errors static inline int wohoo() { return 0; }
Don't be confused. Static in the context of a class does exaclty what you think it does.
















