37.9k views
0 votes
Namespaces cannot have namespaces as members.

True

False

User AboAmmar
by
6.8k points

1 Answer

6 votes

Answer:

False

Step-by-step explanation:

namespaces can be nested. That is we can have a hierarchy of namespaces.

For examples suppose we have a namespace top. Within this we have another namespace first. At the next level we have a namespace called second. Then we have a class MyClass as a member of this namespace second. Then the complete description of the class will be as follows:

top::first::second::MyClass

User Roy Bogado
by
7.4k points