I\'m still relatively new to C++ and I can\'t seem to figure out the difference in the following two ways of coding a function that may take one parameter or maybe two or th
First off, you're talking about overloading, not overriding. Overriding is done for virtual
functions in a derived class. Overloading refers to the same function name with a different signature.
The difference is logical - in the first case (2 versions), the two functions can behave completely different, whereas the second case will have more or less the same logic. It's really up to you.