mirror of https://github.com/swig/swig
34 lines
961 B
Java
34 lines
961 B
Java
import using_member_multiple_inherit.*;
|
|
|
|
public class using_member_multiple_inherit_runme {
|
|
static {
|
|
try {
|
|
System.loadLibrary("using_member_multiple_inherit");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
|
|
public static void main(String argv[])
|
|
{
|
|
// Single inheritance three deep, overload using and methods
|
|
Using3 u3 = new Using3();
|
|
u3.usingmethod(11);
|
|
u3.usingmethod(11, 22);
|
|
u3.usingmethod(11, 22, 33);
|
|
|
|
// Multiple inheritance, multiple using declarations
|
|
MultMiddleA ma = new MultMiddleA();
|
|
ma.multmethod(123);
|
|
ma.multmethod("hi");
|
|
ma.multmethod(123, 234);
|
|
|
|
MultBottomB mb = new MultBottomB();
|
|
mb.multmethod(123);
|
|
mb.multmethod("hi");
|
|
mb.multmethod(123, 234);
|
|
mb.multmethod(123, 345, 567);
|
|
}
|
|
}
|