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
What is cohesion in oop?
Whats is abstraction in oops?
What is overloading in oops?
What are different oops concepts?
Why we use classes in oop?
#include
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What is class in oop with example?
What does enum stand for?
How can you overcome the diamond problem in inheritance?
Why do we use encapsulation in oops?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
How long to learn object oriented programming?
What is object-oriented programming? Webopedia definition
What does and I oop and sksksk mean?