|
Last change
on this file since 2 was 2, checked in by bird, 23 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
|
|---|
| 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.