default-value tag

3 questions


1 answers
168 views
0
Can I put the default value in the parameter in Java?

public MyParameterizedFunction(String param1, int param2) { this(param1, param2, false); } public MyParameterizedFunction(String param1, int param2, boolean param3) { //use all three parameters here...


1 answers
103 views
0
Is there an easy way to initialize the entire C/C++ array to -1?

int array[100] = {0};I heard that the entire silver element is set to zero, so I thought I just need to set oneint array[100] = {-1};So the first element is minus 1, and the rest is zero.I don't want ...


1 answers
128 views
0
What is the default for Boolean in Java?

What is the default for Boolean in Java?

2 years ago

© 2024 OneMinuteCode. All rights reserved.