- 1
Mess up
In methods >> method overloading It would return a error, not a number because, theres not int/double variable when sending the value.
2 Réponses
+ 2
Specify relevant language in the tags above (where you wrote "methods") please. It helps clarify language context.
And attach the code if this was code related issue.
https://www.sololearn.com/post/75089/?ref=app
+ 1
You have to have the correct parameter list for overloaded methods to work for example
Method m1(int,int,string); //1st
//overloaded method //2nd
Method m1(int);
m1(1,2,"3"); //calls 1st method
m1(3); //calls 2nd method
If a method returns somthing make sure the return type in the signature is correct the return type in the signature has nothing to do with the parameter list only what this method returns
void returns nothing
int returns int
string return strings ect ect