\begin{slide}{Client-Objekte (I)}

\begin{verbatim}
class Customer implements Runnable {
    private String name;
    private Clerk clerk; 
    private int items;

    Customer (String n, Clerk c, int i) {
        name = n; clerk = c; items = i;
    }
    ...
}
\end{verbatim}
\end{slide}

\begin{slide}{Client-Objekte (II)}
\begin{verbatim}
class Customer implements Runnable {
  private String name;
  private Clerk clerk; 
  private int items;
  ...
  public void run () {
    for (int k=0; k<items; k++) {
      Util.nap ();
      int x = clerk.get ();
      System.out.println 
        ("Customer " + name + " got item " + x);
    }
  }
}
\end{verbatim}


\end{slide}
