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