namespace TestNS{
class Test{
public:
int num();
};
}

namespace TestNS{
int Test::num(){
return 111;
}
}

int main()
{
    TestNS::Test t;
    t.num();
}