When using default arguments in overloaded functions, care should be taken to ensure that there isn't any ________ among function signatures.

  • ambiguity
  • duplication
  • inconsistency
  • redundancy
In C#, if overloaded functions have default arguments that could lead to ambiguity in function calls, it's important to avoid such situations. Ambiguity arises when the compiler cannot determine which overloaded function to call because the arguments provided match multiple overloaded versions.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *