MiniJavaCompiler/Test/JavaSources/TestConstructorOverload.java

13 lines
232 B
Java
Raw Normal View History

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