I have found a code construct, I have never seen before and I don't know how it is called. Can someone explain it to me? I was not able to find it via google nor in this forum.
module.cpp
namespace NSModule
{
CModule CModule::Instance; //Global in this namespace
}
module.hpp
namespace NSModule
{
class CModule
{
public:
/* Some methods and such stuff */
private:
static CModule Instance;
}
}
Why is there the class before the variable together with :: ?
CModule CModule::Instance;
I will change the title and specify my question, when I know how this is called.