+ 1
Scope resolution operator..used just to define functions member of a class ?
Scope resolution operator..used just to define functions member of a class ?..in case of a friend function,we don't use it...so the friend function is not a member of the class ?
4 Réponses
+ 3
Please follow the link
http://quiz.geeksforgeeks.org/scope-resolution-operator-in-c/
+ 1
Accessing static functions perhaps, everything else is a member access operator (dot/arrow).
- 1
Or to resolve the scope (namespace/class) the function is in.
Like std::* things.
- 1
More like; used to access member functions of a class. That's why it doesn't need to be used in friend functions (because, friend functions aren't inside the class). Besides, the only time you wouldn't need it for a friend function is if the friend function is within the reach (or scope) of your current call.