Namespace?

What is this "namespace" thing I'm seeing in code these days? Well actually, why is this namespace thing? What problem is it trying to solve? It looks to me like its trying to let you name things as if they were classes without actually being classes? There seems to be no point to it.

Anyone?

-jim lee

A namespace is a way of encapsulating things like classes and enums in a way that prevents name conflicts. The actual name of a class or enum consists of the namespace and the class or enum.

Without a namespace, two classes with the same name cause conflicts. With each in its own namespace, no conflicts.