|
Last change
on this file since 3103 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:
615 bytes
|
| Line | |
|---|
| 1 | // Class tp
|
|---|
| 2 | // Generated on Thu Nov 4 16:35:03 PST 1999
|
|---|
| 3 | //
|
|---|
| 4 |
|
|---|
| 5 | class tp {
|
|---|
| 6 | private int i;
|
|---|
| 7 | void foo () {
|
|---|
| 8 | tp.z x1 = new z();
|
|---|
| 9 | tp.z.y x = x1.new y();
|
|---|
| 10 | x.bar ();
|
|---|
| 11 | x.print();
|
|---|
| 12 | }
|
|---|
| 13 | public static void main (String[] arg)
|
|---|
| 14 | {
|
|---|
| 15 | System.out.println ("Testing class `tp'...");
|
|---|
| 16 | new tp ().foo();
|
|---|
| 17 | }
|
|---|
| 18 | class z {
|
|---|
| 19 | private int j;
|
|---|
| 20 | void foo () {
|
|---|
| 21 | tp.this.i = 3;
|
|---|
| 22 | }
|
|---|
| 23 | class y {
|
|---|
| 24 | private int k;
|
|---|
| 25 | void bar () {
|
|---|
| 26 | tp.this.i = 3;
|
|---|
| 27 | z.this.j = 4;
|
|---|
| 28 | y.this.k = 34;
|
|---|
| 29 | }
|
|---|
| 30 | void print () {
|
|---|
| 31 | System.out.println ("i="+i+", j="+j+", k="+k);
|
|---|
| 32 | }
|
|---|
| 33 | }
|
|---|
| 34 | }
|
|---|
| 35 | }
|
|---|
| 36 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.