source:
trunk/gcc/libjava/testsuite/libjava.compile/static_inner.java
Last change on this file was 2, checked in by , 22 years ago | |
---|---|
|
|
File size: 281 bytes |
Line | |
---|---|
1 | // File Parent.java |
2 | class Parent { |
3 | public static class Kid { |
4 | public Kid(int age) { |
5 | this.age = age; |
6 | } |
7 | |
8 | int age; |
9 | } |
10 | } |
11 | |
12 | // File NewParent.java |
13 | public class static_inner extends Parent { |
14 | |
15 | public static void main(String[] argv) { |
16 | Kid kid = new Kid(2); |
17 | } |
18 | |
19 | } |
Note:
See TracBrowser
for help on using the repository browser.