Multiple choice technology databases

Can 2 functions have same name & input parameters but differ only by return data type?

  1. True

  2. False

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

In most programming languages, method overloading is based on the method name and its parameter list (signature). Functions cannot be overloaded if they only differ by their return type because the compiler cannot determine which function to call based on usage.