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.
Loading...
Related Quiz
- Creating user-defined exceptions in C++ can be achieved by inheriting the _______ class.
- In C++, _______ functions cannot be virtual.
- Which of the following is NOT a primitive data type in C++?
- Which parameter-passing method does not allow the function to modify the actual argument?
- In C++, where is the actual body of the function specified?