mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-27 03:49:03 +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);
|
||
|
}
|
||
|
|
||
|
}
|