I have the following Java class:
public class Dog {
public void bark() {
System.out.println("Aw");
}
}
Is it possible to write a C++ class, say Poodle, which inherits from Dog and overrides the Java bark method?
EDIT1: The big challenge here is that the Poodle C++ class will have to be executed by an embedded JVM created with JNI_CreateJavaVM
O.o
EDIT2: Unfortunately this looks impossible :( => But for part 2 of this question you can check here: Is it possible for a C++ program to receive Java method calls from an embedded JVM running through JNI?