ProgrammingModerateAccenture · Cognizant pattern

Which of these operators cannot be overloaded in C++?

  1. A. +=
  2. B. []
  3. C. ()
  4. D. ::

Correct answer: D. ::

The scope resolution operator ::, member access ., .*, the conditional ?: and sizeof cannot be overloaded. [], () and += are commonly overloaded.

More OOP with C++ and Java questions

Exams that ask this topic