MiniJavaCompiler/Test/JavaSources/TestConstructorOverload.java

13 lines
232 B
Java

public class TestConstructorOverload {
public int a = 42;
TestConstructorOverload() {
// nothing here, so a will assume the default value 42.
}
TestConstructorOverload(int a) {
this.a = a;
}
}