mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 23:09:52 +08:00
73bb4fe42a
2000-02-28 Mo DeJong <mdejong@cygnus.com> * libjava.compile/static_inner.java: New file. From-SVN: r32250
20 lines
281 B
Java
20 lines
281 B
Java
// File Parent.java
|
|
class Parent {
|
|
public static class Kid {
|
|
public Kid(int age) {
|
|
this.age = age;
|
|
}
|
|
|
|
int age;
|
|
}
|
|
}
|
|
|
|
// File NewParent.java
|
|
public class static_inner extends Parent {
|
|
|
|
public static void main(String[] argv) {
|
|
Kid kid = new Kid(2);
|
|
}
|
|
|
|
}
|