1 package test3; 2 3 public class InheritCons { 4 int value; InheritCons()5 public InheritCons() { this(2); } InheritCons(int i)6 private InheritCons(int i) { value = i; } InheritCons(String s)7 protected InheritCons(String s) { this(0); } InheritCons(char c)8 InheritCons(char c) { this(1); } 9 } 10