Scope resolution operator in c++ is denoted by double colon (::). It can be used:
– when there is a local variable with same name as of global variable
– When a function has to be defined outside a class
– When class’s static variables needs to be accessed
– When a class inside another class has to be referred
– In case of multiple Inheritance
Vishalini.R Answered question June 28, 2023
The:: (scope resolution) operator qualifies concealed names so that they can still be utilized. If a namespace scope or global scope name is masked by an explicit declaration of the same name in a block or class, you can use the unary scope operator.
Vishalini.R Answered question June 28, 2023
