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