answersLogoWhite

0

Can you have nested namespace

Updated: 8/16/2019
User Avatar

Wiki User

9y ago

Best Answer

Of course! All namespaces are nested by default since all namespaces exist in the global namespace. A class is also a namespace; therefore classes can also be nested.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you have nested namespace
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is nested class and what is its use in c plus plus?

A nested structure is simply one structure inside another. The inner structure is local to the enclosing structure. struct A { struct B {}; }; Here, we can instantiate an instance of A as normal. A a; But to instantiate B we must qualify the type because it is local to A: A::B b; If B were only required by A, then we can prevent users from instantiating instances of B simply by declaring it private: struct A { private: struct B {}; };


What is Namespace in NET framework?

They are(simply put) the things that you import.... EXAMPLE: VB Import (namespace) C# Using (namespace)


What is nested logic?

In Nested Logic a Logic is contained within a Logic. If the Outer Logic is TRUE then the internal Logic is executed. Nested IF, Nested For, Nested While, e.t.c are some examples of Nested Logic in Modern Computer Languages.


When was Nested created?

Nested was created in 1977.


What are some disadvantages of using namespace in C?

Here's one: there's no namespace in C


What is the user folder for an account that contains a group of subfolders called?

profile namespace


What are examples of nested solids?

three examples of nested solids


Is have nested present past future?

"Have nested" is in the present perfect tense.


What is the if statement that appears inside another if statement?

nested if Statement


Is a public function accessed like a non-member function?

A public function is scoped to the class in which it is declared. If declared non-static, then it must be invoked against an instance of the class but if declared static then namespace resolution is required to access the function. A non-member function is not scoped to any class but may be scoped to a namespace. If no namespace is specified, then it is scoped to the (unnamed) global namespace. If scoped to any other namespace then namespace resolution is required to access the function.


Can css comments be nested?

No, the CSS specifications explicitly state that CSS comments cannot be nested. If you try to do this, then your nested comments closing delimiter */ will close out the larger comment and anything after it will be rendered by the web browser. When comments are nested, the nested comment's beginning delimiter /* is ignored yet the closing */ is not.


What is global object in c plus plus?

A global object is any object instantiated in the global namespace. The global namespace is anonymous, so if we don't explicitly specify a namespace prior to instantiating an object, that object will be instantiated in the global namespace: int x; // global namespace n { int x; // non-global }; To refer to the non-global, we must use namespace resolution: x = 42; // assign to the global n::x = 42; // assign to the non-global