overloading is simple.. in java for example:
Code:
public void GiveMeVal(int x)
{
system.out.println("x is an int equal to:" + x);
}
public void GiveMeVal(String s)
{
system.out.println("s is a string equal to:" + s);
}
so there are TWO "methods" with the same name (GiveMeVal) but have a DIFFERENT parameter list (int x and String s).
So if we call: GiveMeVal(10); we will get "x is an int equal to: 10"
and if we call...: GiveMeVal("ten"); we get "s is a string equal to: ten"
easy!!