+ 1
What is overloading means?
2 odpowiedzi
+ 3
giving multiple ways for passing arguments in the same function.
+ 1
As i understood the lesson it gives you the possibility to create several function using the same name but using different arguments type and differents amount of arguments. Then, when you call the function the script will automaticly trigger the function that fit what arguments you have use.
If you have:
myFunct(string arg1)
and
myFunct(int arg1)
and then you call myFunct with a string, the script will use the function using string argument. But if you call the function with a type not defined in any of your myFunction, you will get an error.