posted 5 years ago
Some languages allow for optional parameters going into a function.
Microsoft VBA has a feature where parameters can be optionally used.
The receiving function is not guaranteed that all of parameters will be used. I think that the unused parameters are always on the right side of the function.
I could have a bunch of Constructor methods each with a different number of parameters.
It there a way to define the function so that it can be flexible on the parameters being used.
For example:
Thanks,
Kevin