Java : Bound mismatch error
<p>I'm learning Java and I have to create a program that implements an interface defined by the teacher to pratice ADT (using ArrayList). I got errors that I don't understand maybe new explanations can help me.</p>

<p><strong>Interface :</strong></p>

<pre><code>public interface A&lt;T extends C&gt; { ... }
</code></pre>

<p><strong>Class signature in error :</strong></p>

<pre><code>public class AImpl&lt;T&gt; implements A&lt;T&gt; { /*Bound mismatch error*/ ... }
</code></pre>

<p><strong>JUnit test class</strong></p>

<pre><code>//Declaration
A&lt;Alphabet&gt; alphaList;

//in setUp()
alphaList = new AImpl&lt;Alphabet&gt;;

// in one method
alphaList.size();  /* The method size() is undefined for the type A&lt;Alphabet&gt; */
</code></pre>

<p>Note that Alphabet is given by the teacher too and there's the signature :</p>

<pre><code>public class Alphabet implements C { ... }
</code></pre>

<p>Can someone help to point out where is my errors with some explanations ? </p>

<p>Regards.</p>
