Explain use of scope resolution operator.
It is used to uncover a hidden variable. Scope resolution operator allows access to the global version of a variable. The scope resolution operator is used to refer variable of class anywhere in program.
:: Variable_name
OR
Scope resolution operator is also used in classes to identify the class to which a member function belongs. Scope resolution operator is used to define function outside of class.
Return_type class_name:: function_name( )
{
Function body
}