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

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

java - Getting exception in JDBC thin driver -