public class ExampleImpl
extends UnicastRemoteObject
implements Example
{
public ExampleImpl () throws RemoteException { }
public void printMessage (String message) { System.out.println (message); }
}
Interface used to mark remotely accessible object.
Inheritance used to export the instance.
Constructor can return exception.