1 package test2; 2 3 class RemoveParent { 4 int p; 5 } 6 7 public class Remove extends RemoveParent { 8 public int f1; 9 public int f2; 10 public String f3; 11 public Remove f4; 12 public int[] f5; 13 public int f6; 14 int g = 3; 15 bar()16 public void bar() {} Remove()17 public Remove() { g = 7; } Remove(int i)18 public Remove(int i) { g = i; } 19 foo()20 public int foo() { 21 return g; 22 } 23 bar2()24 public void bar2() {} 25 } 26