// Collection of code snippets by Arne VajhÃ¸j 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import java.rmi.Remote;
import java.rmi.RemoteException;

// interfacet som er fælles for stub og server
// skal extende Remote
public interface Calc extends Remote {
   // metoder i interfacet
   // skal throwe RemoteException
   public int add(int a, int b) throws RemoteException;
   public int mul(int a, int b) throws RemoteException;
}
