ProAnswers.org

scope resolution operator c++ and what for it is used?

1 Like

It is an operator :: used mainly in class for defining the member functions and also for accessing the global variables.

With the help of Scope Resolution operator(::slight_smile: we can define function of class outside that class.