19 lines
210 B
Text
19 lines
210 B
Text
|
/* Test inherited Array */
|
||
|
|
||
|
class Main {
|
||
|
void main() {
|
||
|
C1 c1;
|
||
|
C2 c2;
|
||
|
c1 = new C1();
|
||
|
c2 = new C2();
|
||
|
c1.x = new int[3];
|
||
|
c2.x = new int[4];
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
class C1{
|
||
|
int[] x;
|
||
|
}
|
||
|
|
||
|
class C2 extends C1 {}
|