Skip to content
Snippets Groups Projects

Subtype test

Merged Xun Yang requested to merge subtype-test into master
8 files
+ 215
15
Compare changes
  • Side-by-side
  • Inline
Files
8
+ 10
0
public class J1_02_Array_Creation {
public int i = 5;
public J1_02_Array_Creation(){}
public static int test(){
J1_02_Array_Creation[] array = new J1_02_Array_Creation[10];
array[0] = new J1_02_Array_Creation();
array[9] = new J1_02_Array_Creation();
return array[0].i;
}
}
\ No newline at end of file
Loading