Is it possible to have different return types for a overloaded method?
- by Dunith Dhanushka
In method overloading, is it possible to have different return types for a overloaded method?
for example,
void foo(int x) ;
int foo(int x,int y);
double foo(String str);
in general object oriented programming, is it possible?