You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EmptyConstructor.java 610B

123456789101112131415161718192021222324252627282930313233
  1. package test3;
  2. public class EmptyConstructor {
  3. static {}
  4. public int value;
  5. }
  6. class EmptyConstructor2 extends EmptyConstructor {
  7. static {}
  8. public int value2;
  9. }
  10. class EmptyConstructor3 extends EmptyConstructor {
  11. public int value3;
  12. public EmptyConstructor3() {}
  13. public EmptyConstructor3(int x) { super(); }
  14. }
  15. class EmptyConstructor4 extends EmptyConstructor3 {
  16. public static int sv = 3;
  17. public int value3;
  18. EmptyConstructor4(int x) {
  19. super(x);
  20. }
  21. EmptyConstructor4(double x) {
  22. this();
  23. }
  24. EmptyConstructor4() {
  25. value3 = 7;
  26. }
  27. }