Multiple choice

Which of the following operators cannot be overloaded?

  1. ++

  2. ::

  3. >

  4. ==

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

The scope resolution operator (::) has many uses in C++. It is used to define a function outside the class and is used for removing ambiguity in class members. It cannot be overloaded.