make rules fix: method overriding is not applicable to constructors

This commit is contained in:
Eugene Zhuravlev
2014-09-22 19:58:01 +02:00
parent 60b420c3d1
commit f7e78891bb
7 changed files with 39 additions and 0 deletions
@@ -0,0 +1,12 @@
Cleaning output files:
out/production/AddParameterToConstructor/Derived.class
End of files
Compiling files:
src/Derived.java
End of files
Cleaning output files:
out/production/AddParameterToConstructor/Client.class
End of files
Compiling files:
src/Client.java
End of files
@@ -0,0 +1,6 @@
public class Base {
public Base() {
}
public Base(int param) {
}
}
@@ -0,0 +1,5 @@
public class Client {
public static void main(String[] args) {
Derived der = new Derived();
}
}
@@ -0,0 +1,2 @@
public class Derived extends Base {
}
@@ -0,0 +1,4 @@
public class Derived extends Base {
public Derived(int ppp) {
}
}