fun multipleParams(id: Int = 1 , name: String) { ... } I created the above method in the class. The following method call is a working correctly with:
multipleParams(1,"Rose") Is it possible to use it in a way, such that sometimes I pass only name and sometimes both?
multipleParams(1,"Rose") multipleParams("Rose")