+ 6

When we should have to use scope resolution (::)?

While using class, when we can use scope resolution.

14th Oct 2017, 9:31 AM
Nishant Magarde
Nishant Magarde - avatar
1 Answer
+ 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.
14th Oct 2017, 10:10 AM
Amit Mathew