+ 2
Java does not support default value for methods.
c++ and other langs. support default value for a parameters but java doesn't support it. what other approach should i use to regain this powerful feature?
2 odpowiedzi
0
I guess you'll have to stick with the normal function overloading to achieve what you want
0
Like this
public void test() {
test("exampleText");
}
public void test(String name) {
}