Multiple choice

Which of the following conditions must hold to say that a particular function is overloaded in C++?

  1. The function must have a different name.

  2. The function must be an inline function.

  3. The function must have the same name with different argument and different return type.

  4. The same function must be inherited by another class.

  5. The function must have no return type nor any arguments.

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

This is the condition that must hold to say that a particular function is overloaded in C++.