<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\begin{slide}{Vergleich mit inneren Klassen}

\begin{verbatim}
interface Fun { int app (int x); }
class Linear {
  static Fun linear (int a, int b) {
    return new Fun() { 
      int app (int x) { return a * x + b; }
  } }
  static int example() {
    Fun f = linear (4,5); 
    Fun g = linear (6,7);
    return f.app(8) + g.app(9);
} }
\end{verbatim}
Fehler? Bytecode?
\end{slide}
</pre></body></html>