mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-30 00:55:19 +08:00
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);
|
||
|
}
|
||
|
|
||
|
}
|