Methods, Optional Parameters and/or Accepting multiple Data Types
问题 After browsing the web for a while looking for an answer to my question I can't find any posts which seem to offer an effective solution to my issue. Currently I would overload a method for each different data type input. For example: public void ex1(String in){ public void ex1(int in){ I would imagine there would be a way to condense this into one line public void ex1(opt(String in), opt(int in)){ or public void ex1((String/int) in){ However, as far as I've seen, nobody has presented a