@buddyr
Two part reply:
First: Don't be afraid to experiment. It takes 30 seconds to actually put that code in the program and try it. Writting it up for a forum then waiting on a reply is hours. Trial and error will teach you a lot more than someone giving you the yes/no answer.
Second:
Overloading is the technique of creating two methods of the same name with different parameter signatures.
These would all be valid signature overloads for a method called "CalculateTotal"
-
private int CalculateTotal(int nOne)
-
private int CalculateTotal(int nOne, nTwo)
-
private int CalculateTotal(List<int> nList)
-
private int CalculateTotal(Decimal Yogi, float Booboo, string RangerSmith)
-
So you tell me... Would these all be valid overloads for your method?
-
public static int add(string stingOne, string stringTwo, stringThree)
-
public static int add(int numberOne, int numberTwo)
-