What is the use of unnamed namespaces in OOPS?
The only advantage I know is that they dont need the scope
resolution operator while accessing them. I want to know
some other advantages of unnamed namespaces...

Answer Posted / c++ coder

in addition to the advantage mentioned above , there is one
more that the namespace is local to the file and one cannot
use it into another by 'using namespace' since it is
unnamed.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

1983


What does it mean when someone says I oop?

584


What is polymorphism in oop example?

514


What is the point of polymorphism?

586


What is class and object in oops?

609






What are classes oop?

596


How oops is better than procedural?

585


What are benefits of oop?

638


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1639


is there any choice in opting subjects like 4 out of 7

1729


What is protected in oop?

604


What is overloading and its types?

615


How do you define social class?

600


What is overloading in oops?

597


What is encapsulation and abstraction? How are they implemented in C++?

637