+ 6
When we should have to use scope resolution (::)?
While using class, when we can use scope resolution.
1 Respuesta
+ 25
scope resolution operator is used in C++ for following purposes:-
*To access a global variable when there is also a local variable with same name.
*To define a function outside a class.
*To access a class,s static variables.
*In case of multiple inheritance.