\begin{slide}{Information verstecken}

schlecht:\verb|class C { int foo; }|,

besser:
\begin{verbatim}
class C {  private int foo;
  int getFoo () { return this.foo; }
  void setFoo (int foo) { this.foo = foo; }
}
\end{verbatim}
(Eclipse: source: generate getter/setter, refactor: encapsulate field)


\dots am besten
\begin{verbatim}
class C { private final int foo;
   C (int foo) { this.foo = foo; }
}
\end{verbatim}
(Eclipse: generate constructor \dots)
\end{slide}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 
