import java.rmi.*; public interface rrat extends Remote { // don't put constructor here public int getn() throws java.rmi.RemoteException; public int getd() throws java.rmi.RemoteException; public void setn(int x) throws java.rmi.RemoteException; public void setd(int x) throws java.rmi.RemoteException; public String toStr() throws java.rmi.RemoteException; public boolean eqr(rrat r) throws java.rmi.RemoteException; public void invert() throws java.rmi.RemoteException; public void change(bigobject b) throws java.rmi.RemoteException; public rrat make(String newrat, int n, int d) throws java.rmi.RemoteException; } // rrat