staticint x; // global variable is visible only in this translation unit
staticvoid f() // global function is visible only in this translation unit
{
}
void g()
{
staticint a; // behaves like a global visible only in this function
}
class Tmp
{
staticint b; // all objects of type Tmp will see the same b
public:
staticvoid sf() // function can be used without an instantiation
{
}
};
int Tmp::b; // b must be defined externally