Pergunta de entrevista da empresa IDIQ

how to define method with one or two parameter but I need to access with multiple parameters how can we do?