Namespaces
A software project consists normally of a number of pieces of code (declarations, procedures and functions, classes, and so on), known generically as components of an assembly. For large projects the number of these components can be quite large. To ease the use of these components by further grouping them into smaller categories, a new construct was introduced. It is known as a namespace. A namespace is a group of components that are somehow related. These components can be type declarations, constants, procedures, functions, classes, and so on.
Namespaces also resolve naming ambiguity issues with which programmers in older languages were confronted. Let us assume your program uses an external function called WriteError to log an ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access