Overload with different return type in java?
Posted
by nunos
on Stack Overflow
See other posts from Stack Overflow
or by nunos
Published on 2010-03-13T19:49:53Z
Indexed on
2010/03/13
19:55 UTC
Read the original article
Hit count: 152
java
|overloading
So, I am just starting Java and, even though I have looked in some question about it here at stackoverflow.com and elsewhere, haven't been able to find a straightforward answer to why isn't possible to overload a function just by changing the return type. Why is it so? Will that provably change in a future version of Java?
By the way, just for reference, is this possible in C++?
Thanks.
© Stack Overflow or respective owner