blob: 2b6e1f4efec3f077d4871438ce5b556cc93d0fd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
package test3;
class SuperConsturctor {
SuperConsturctor() {}
SuperConsturctor(int p, int q) {}
SuperConsturctor(int p, double r, long[] s, String t) {}
}
public class Constructor extends SuperConsturctor {
static String str = "ok?";
int i;
public Constructor() {
this(3);
++i;
}
public Constructor(int k) {
super(0, 1.0, null, "test");
i += k;
}
public Constructor(String s) {
this();
i += 10;
}
public Constructor(double d) {
super(1, 2);
i += 100;
}
public int run() {
str = null;
return 0;
}
}
|