Using wildcard type in java generics
<p>I want to pass object of <code>GameObject</code> class which would also implement <code>Collidable</code> interface. How should it look like?</p>

<pre><code>private boolean isCollision(GameObject&lt;? extends Collidable&gt; collid) {
}
</code></pre>

<p>How should it look like? <code>collid</code> must be instance of both <code>GameObject</code> and <code>Collidable</code>.</p>
