Java支持默认参数值吗?
public MyParameterizedFunction(String param1, int param2){ this(param1, param2, false);}public MyParameterizedFunction(String param1, int param2, boolean param3){ //use all three parameters here}
void MyParameterizedFunction(String param1, int param2, bool param3=false);
胡子哥哥
侃侃无极