Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In computer
programming, scope is an enclosing context where values and expressions
are associated. The scope resolution operator helps to identify and
specify the context to which an identifier refers. The specific uses
vary across different programming languages with the notions of scoping.
The scope resolution operator in C++ is used to define the already
declared member functions of a particular class. In the .cpp file one
can define the usual global functions or the member functions of the
class. To differentiate between the normal functions and the member
functions of the class, one needs to use the scope resolution operator
in between the class name and the member function name i.e. ship::foo()
where ship is a class and foo() is a member function of the class ship.