What is the scope resolution operator?
- It is used to define a function outside a class or when we want to use a global variable but also has a variable with same name.
- Scope resolution operator (::) allows a program to reference an identifier in the global scope that is hidden by another identifier with the same name in the local scope.
Syntax:class_name :: identifier
namespace :: identifier
- This operator is used to identify the identifiers which is used in different scopes.