In C++, scope resolution operator is " :: " . It is used for following purposes.
1} To access a global variable when there is a local variable with same name
2) To define a function outside a class.
3) To access a class’s static variables.
4) In case of multiple Inheritance.
5) For namespace.
6) Refer to a class inside another class: