danpost wrote...
public ClassA(int val)class ClassA { final static int[] init_array = {0,1,2,3}; final int[] array; ClassA() { array = init_array; } } class ClassB extends ClassA { final static int[] init_array = {4,5,6,7}; final int[] array; ClassB() { array = init_array; } }
class ClassA { final static int[] init_array = {0,1,2,3}; protected final int[] array; ClassA() { this(init_array); } ClassA(int [] init_array) { array = init_array; } } class ClassB extends ClassA { final static int[] init_array = {4,5,6,7}; ClassB() { super(init_array); } }
class ClassA { final static int[] init_array = {0,1,2,3}; public int[] getArray() { return init_array; } } class ClassB extends ClassA { final static int[] init_array = {4,5,6,7}; public int[] getArray() { return init_array; } }