The scope resolution operator (::) connects a member function definition to its class when defined outside. You write ReturnType ClassName::functionName(parameters) to show this function belongs to ClassName. The extraction (>>), insertion (<<), and ternary (? :) operators serve completely different purposes in C++.