Check out example codes for "c++ custom namespace". It will help you in understanding the concepts better.

Code Example 1

//using namespaces
using namespace std;

//creating namespaces
namespace custom{
  class example{
    public:
    	static int method(){
          return 0;
        }
  };
};

//using custom namespaces
using namespace custom;

Learn ReactJs, React Native from akashmittal.com