|
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:
283 bytes
|
| Line | |
|---|
| 1 | // Minimal test of a virtual method.
|
|---|
| 2 |
|
|---|
| 3 | public class virtual
|
|---|
| 4 | {
|
|---|
| 5 | static
|
|---|
| 6 | {
|
|---|
| 7 | System.loadLibrary ("virtual");
|
|---|
| 8 | }
|
|---|
| 9 |
|
|---|
| 10 | public native boolean equals (Object obj);
|
|---|
| 11 |
|
|---|
| 12 | public static void main (String[] args)
|
|---|
| 13 | {
|
|---|
| 14 | Object v = new virtual ();
|
|---|
| 15 | System.out.println (v.equals (v));
|
|---|
| 16 | }
|
|---|
| 17 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.