C++ Scope Resolution Operator ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

C++ Scope Resolution Operator ?

can someone please explain this is simple English, and yes with an example. ? And please do explain the concept of classes and headers in C++. Since I come from JAVA with minimal our no prior knowledge of c++, its hard for me to understand this one.

14th Jan 2017, 5:56 PM
Manish Sharma
Manish Sharma - avatar
1 Answer
0
A scope resolution operator can be thought about like simple member access (obj.foo()) operator, the only difference is that it accesses global data, rather than class members. It's used to access namespaces and static members (they are not really members in a regular way). Namespaces are like folders. Look it up. Classes are like classes in JAVA they just work (in part) different.
15th Jan 2017, 8:19 AM
Norbivar
Norbivar - avatar