private and public in namespace cpp
#include <cstdio>
#include "thing.hpp"
int main(int argc, char **argv)
{
printf("%d\n", thing::getX()); // OK
printf("%d\n", thing::getSum()); // OK
printf("%d\n", thing::sum(1, 2)); // error: ‘sum‘ is not a member of ‘thing’
printf("%d\n", thing::y); // error: ‘y‘ is not a member of ‘thing’
}