In C++, global and static variables initialized to default values.
You can’t initialize a static member variable inside the class declaration, you
need to put it in a .cpp file. But you can if the static data member is const
of integer or enumeration.
Static member function has two usages: 1)It can be invoked just by
class name, not object instance, so you can define math class and
define a lot static math function inside it. Just like name space.
2) It can’t access class data member, only can access class static member
data.