very importtant
hi friends ,i have a doubt that if a interface A and interface B have a method calculate
and i am extending these interface in Class c then i have to give definiton for both the methods if i dont give dofinition for any one also then i will get a compilation error .if i define the same method in Class C two times then also i will get complation error then how can i overcome this situation.. please help..
[420 byte] By [
thomasa] at [2007-10-2 23:07:34]

This has nothing to do with JNI ( interfacing with C++ )
Maybe you should post to "New to Java"
If both interfaces, A & B, use the exact same method declaration, then C can implement both interfaces.
regards,
Owen
public interface A
{
public int calculate ( int a );
}
public interface B
{
public int calculate ( int a );
}
public class C implements A, B
{
public int calculate ( int a )
{
return ( a * 2 );
}
}