The number of arguments does not need to match the number in the parameter list when you use ____. 19. When can a method be called with less arguments than exist in the parameter list for the method

Respuesta :

Only when the default parameter are defined in the function

Explanation:

Answer is same for both the question.

  • A default argument or default parameter is assigned an automatic value when the function is invoked.
  • So the default value will be assigned during the function definition itself.
  • You can find the assignment operator which is being used in the function definition.
  • You can overwrite the default values by passing your own value in the calling portion
  • The constraint here is that, the default parameter should always be the last parameter of function definition to avoid ambiguity.