Skip to content

Tag Archives: cpp-namespaces

Classes are data types. They are an expanded concept of structures, they can contain data members, but they can also contain functions as members whereas… Read More
A namespace is a declarative region that provides a scope to the identifiers (the names of types, functions, variables, etc) inside it. Namespaces are used… Read More
Prerequisite: Namespaces in C++ In C++, namespaces can be nested, and the resolution of namespace variables is hierarchical. An inline namespace is a namespace that… Read More
Namespace in C++ | Set 1 (Introduction) Namespace in C++ | Set 2 (Extending namespace and Unnamed namespace)Different ways to access namespaceIn C++, there are… Read More
We have introduced namespaces in below set 1.Namespace in C++ | Set 1 (Introduction) Defining a Namespace: A namespace definition begins with the keyword namespace… Read More
Namespace provide the space where we can define or declare identifier i.e. variable,  method, classes. Using namespace, you can define the space or context in… Read More