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, specifying which class the function belongs to. The extraction (>>) and insertion (<<) operators are used for I/O streams, not for defining class members.