mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-28 21:49:33 +00:00
18 lines
283 B
Java
18 lines
283 B
Java
// Minimal test of a virtual method.
|
|
|
|
public class virtual
|
|
{
|
|
static
|
|
{
|
|
System.loadLibrary ("virtual");
|
|
}
|
|
|
|
public native boolean equals (Object obj);
|
|
|
|
public static void main (String[] args)
|
|
{
|
|
Object v = new virtual ();
|
|
System.out.println (v.equals (v));
|
|
}
|
|
}
|