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:
536 bytes
|
Line | |
---|
1 | // Class anon3
|
---|
2 | // Generated on Wed Dec 29 10:07:09 PST 1999
|
---|
3 | //
|
---|
4 |
|
---|
5 |
|
---|
6 | class anon3 {
|
---|
7 |
|
---|
8 | itf bar () {
|
---|
9 | return new itf () {
|
---|
10 | int count = 5;
|
---|
11 | public void setCount (int j) { count = 3; }
|
---|
12 | public int getCount () { return count; }
|
---|
13 | } ;
|
---|
14 | }
|
---|
15 |
|
---|
16 | void test () {
|
---|
17 | itf x = bar ();
|
---|
18 | System.out.println (x.getCount ());
|
---|
19 | }
|
---|
20 |
|
---|
21 | public static void main (String[] arg)
|
---|
22 | {
|
---|
23 | System.out.println ("Testing class `anon3'...");
|
---|
24 | new anon3 ().test ();
|
---|
25 | }
|
---|
26 | }
|
---|
27 |
|
---|
28 | interface itf { void setCount (int j); int getCount(); int count = 0; }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.