source: trunk/gcc/libjava/testsuite/libjava.lang/inner_interface.java

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: 601 bytes
Line 
1// Class inner_interface
2// Generated on Fri Feb 11 16:29:04 PST 2000
3// Simple inner interface example.
4
5class inner_interface {
6 interface bar {
7 static final int field = 14022000;
8 public void inner_interface ();
9 }
10
11 class baz implements inner_interface.bar {
12 public void inner_interface ()
13 {
14 System.out.println ("This is baz.inner_interface "+field);
15 }
16 }
17
18 void x () {
19 this.new baz ().inner_interface ();
20 }
21
22 public static void main (String[] arg)
23 {
24 System.out.println ("Testing class `inner_interface'...");
25 new inner_interface ().x();
26 }
27}
Note: See TracBrowser for help on using the repository browser.