Computer Science, asked by shreyansh2280, 11 months ago

Write a note on Namespace.

Answers

Answered by amithks3
0
a namespace is a set of symbols that are used to organize objects of various kinds, so that these objects may be referred to by name. Prominent examples include:

file systems are namespaces that assign names to files;[1]some programming languages organize their variables and subroutines in namespaces;[2][3][4]computer networks and distributed systems assign names to resources, such as computers, printers, websites

Namespaces are commonly structured as hierarchies to allow reuse of names in different contexts. As an analogy, consider a system of naming of people where each person has a proper name, as well as a family name shared with their relatives. If the first names of family members are unique only within each family, then each person can be uniquely identified by the combination of first name and family name; there is only one Jane Doe, though there may be many Janes. Within the namespace of the Doe family, just "Jane" suffices to unambiguously designate this person, while within the "global" namespace of all people, the full name must be used.

Answered by asifkuet
0

Answer:

Namespace can be defined as a set of symbols to organize objects in a category. The benefit of it is that we can refer that object with a name. It also ensures the identifier within it from various object by providing a unique name. It also can be used to organize code into logical group and of course guarantee the cross-matching. It is used in different sectors like domain names, file location, XML documents, etc.

Similar questions