// NAMESPACE - group associated declarations to prevent name conflicts.

#include <iostream>

using namespace std;

namespace A
{
  void print() { cout << "A" << endl; }
};

namespace B
{
  void print() { cout << "B" << endl; }
};

int main()
{
  A::print();
  B::print();

  // Errors:
  // print();

  return 0;
}

//Ouput:
// A
// B

// EOF