P
Pradeep
Hi,
I have a DLL which is built in C++. This C++ DLL has a JNI Interface
and the methods are called from Java.
I want to know how to define the default / Optional parameters in C++
so that they can be called from Java.
Say for example I have a method add in C++
int add (int x = 5, int y = 10);
Can this method be called from Java through JNI by such a call
int z = object.add();
Or do i need to overload the add method in C++?
Another question I have is that can i use default values in a way such
that the next value has the optional value of the previous one
say
add( int x = 5, int y = x);
Or do i need to overload the method in this case also?
Thanks in Advance
Pradeep
I have a DLL which is built in C++. This C++ DLL has a JNI Interface
and the methods are called from Java.
I want to know how to define the default / Optional parameters in C++
so that they can be called from Java.
Say for example I have a method add in C++
int add (int x = 5, int y = 10);
Can this method be called from Java through JNI by such a call
int z = object.add();
Or do i need to overload the add method in C++?
Another question I have is that can i use default values in a way such
that the next value has the optional value of the previous one
say
add( int x = 5, int y = x);
Or do i need to overload the method in this case also?
Thanks in Advance
Pradeep