0 votes
by (1.1k points)

1 Answer

0 votes
by (1.1k points)
selected by
 
Best answer

The scope resolution operator ( :: ) is used for several reasons. If the global variable name is same as local variable name, the scope resolution operator will be used to call the global variable. It is also used to define a function outside the class and used to access the static variables of class.

Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.
...