source: trunk/gcc/libjava/testsuite/libjava.compile/static_inner.java

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 281 bytes
Line 
1// File Parent.java
2class 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
13public 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.