Multiple choice technology programming languages

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

  1. Extraction Operator

  2. Insertion Operator

  3. Scope resolution operator

  4. None of the Above

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

The scope resolution operator (::) is used to define member functions outside the class definition. It connects the function name to its class scope, such as ClassName::memberFunction. The extraction operator (>>) is for input, insertion operator (<<) is for output - neither is used for defining methods outside classes.