I came across some Java code that had the following structure:
public ParameterizedFunction(String param1, int param2)
{
this(param1, param2, false);
}
public ParameterizedFunction(String param1, int param2, boolean param3)
{
//use all three parameters here
}
I know that in C++ I can assign a parameter a default value. For example:
void ParameterizedFunction(String param1, int param2, bool param3=false);
Does Java support this syntax?