c# - Overloading return types -
this question has answer here:
is following method overloaded?
class { public void display(int a, int b) { console.write(a+b); } public int display(int a, int b) { return a+b; //return a+b value } }
the return type doesn't affect method's signature. code not compile, either type or number of parameters should different in order make compile.
Comments
Post a Comment