</div>
<div class="slide">
+ <h1>Roles as Interfaces</h1>
+
+ <ul>
+ <li>Roles can <code>require</code> methods of their consumers</li>
+ <li>Compile-time checks</li>
+ <li>Method must exist when the role is consumed</li>
+ </ul>
+</div>
+
+<div class="slide">
<h1>The Attribute Gotcha</h1>
<pre><code>package HasSize;