There are 2 interfaces A and B which implement remote methods. How can I implement another interface which aggregates interfaces A and B? Or is there any other way to do it?
Eg:
public interface A extends java.rmi.Remote
{
//function declns
}
public interface B extends java.rmi.Remote
{
//function declns
}
public interface C extends java.rmi.Remote implements A,B
{
}
gives me error saying there’s a syntax error on implements
Pls help
Note that interface
Cdoes not need to directly extendjava.rmi.Remotesince it extendsAandB, both of which themselves directly extendRemote.