Multiple choice technology programming languages

The member functions of a class can be defined outside the class using:

  1. extraction operator

  2. scope resolution operator

  3. insertion operator

  4. All the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The scope resolution operator (::) allows defining class methods separately from the class declaration by specifying ClassName::methodName(). This operator connects the function definition to its class scope, unlike stream operators which handle I/O operations.