Multiple choice

Which of the following operators is used in C++ to define a member function of a class outside the class?

  1. ?: (Condition operator)

  2. -> (Indirect member access operator)

    • (Direct member access operator)
  3. :: (Scope resolution operator)

    • (Addition operator)
Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This operator is used in C++ to define a member function of a class outside the class.