A function cannot be overloaded by only by its return type
Answers
Answered by
15
There's only one function in C++ that can be overloaded by return type, the implicit conversion operator special function, named operator T() (with T varying). No, you can't overload based on the return type. ... — Function declarations that differ only in the return type cannot be overloaded
Answered by
0
Answer:
a function cannot be overloaded only by its return type
Similar questions