MiniJavaCompiler/Test/JavaSources/TestOptionalParameter.java

10 lines
179 B
Java

class TestOptionalParameter {
int oneOptional(int p = 1) {
return p;
}
int normalAndOptional(int a, int b = 2, int c = 3) {
return a + b + c;
}
}