Cpp Function Pointer To Class Object In Java