1.

What Kind Of Problems Can Be Solved By A Namespace?

Answer»

The namespace feature is used to AVOID the name collision CAUSED due to the USE of the global identifiers by multiple PROVIDERS of libraries. The provider of libraries avoids such name collisions by assigning the unique namespace to the libraries. The namespace feature is a logical space which uniquely identifies a resource, such as a PROGRAM or class.
The declaration of a namespace is given as follows:

namespace[identifier] { namespace-body }

The namespace feature is used to avoid the name collision caused due to the use of the global identifiers by multiple providers of libraries. The provider of libraries avoids such name collisions by assigning the unique namespace to the libraries. The namespace feature is a logical space which uniquely identifies a resource, such as a program or class.
The declaration of a namespace is given as follows:



Discussion

No Comment Found