One of those is overloading. In C#, this is a no-brainer:
This, for sure, won’t get the job done:
The reason why not is that all the calls below:
… will result in exactly the same result:
… you are also allowed to do the same with the functions. My code above with three functions is in not really way too different than this:
And this explains just why no matter with which parameters I call the HelloWorld function, it is always calling the last function assigned to that name. The others are gone, out of scope.
Being a C/AL guy/gal and all, consider it for a moment – you’ll find this feature beautiful – I promise.
And that’s it. Simple, and elegant.