Skip to content
Sign in
Software Engineering

When overloading functions which of the following should be the same?

Tap an option to check the answer. You can also press A–D.

Show answer

Correct answer: A) Function name

Function overloading requires the same function name but different parameter lists. Return type can be the same or different, but it alone cannot distinguish overloaded functions.
Explanation
Function overloading requires the same function name but different parameter lists. Return type can be the same or different, but it alone cannot distinguish overloaded functions.