Up | Previous | Next |
We already note something: server and client access each other through their public interfaces.
import java.awt.*; import javax.swing.*; public class Client { public void registerWith(ServerInterface server) { System.out.println("Registering with the server now..."); } }
The server is minimal:
public interface ServerInterface { }
We can run the setup now (if we wanted to). If we did, this would be test no. 1.
public class Server implements ServerInterface { }
Up | Previous | Next |