Namespace Articles about
Namespace
 

Information About

Namespace




In general, a Namespace is an abstract container, which is or could be filled by Name s, or technical Term s, or Word s, and these represent (stand for) real-world things.

As a rule, names in a namespace cannot have more than one meaning, that is, two or more things cannot share the same name. A namespace is also called a Context , as the valid meaning of a name can change depending on what namespace applies. Names in it can represent objects as well as Concept s.

Each Language is a namespace, whether it is a natural or ethnic language, a Constructed Language , the Technical Terminology of a profession, a Dialect , a Sociolect , or an artificial language (e.g., a Programming Language ).

For many programming languages, a Namespace is a context for Identifier s. In an operating system, an example of namespace is a directory. It contain items which must have unique names.

In the Java Programming Language , items that appear in namespaces have short and long names. The long name is for use outside the name space.


ILLUSTRATION


Within limited namespaces designed for your family, you might be named as "Charlie." Within a larger namespace containing strangers as well, the name "Charlie" might not be unique, so you are instead "Charlie Brown, 17 Main Street." In (the namespace of) a family, multiple occurrences of the name "Charlie" might be differentiated by suffixes such as "Sr" or "Jr".


EXAMPLES



SEE ALSO