title: How do I override a parent class's method?
body: <pre><code>import java.io*;
  import java.awt.*;
  import java.util.concurrent.*;
  
  public class StudentQueue&lt;E&gt; extends ArrayBlockingQueue&lt;E&gt;
  {
      public StudentQueue(int capacity)
      {
          super(capacity);
      }
  }
  </code></pre>
  
  <p>How do I override the corresponding parent class's methods?  I need to override methods in java library ArrayBlockingQueue.  How do I go about implementing my own method and having it override a method in parent class?</p>
  
  <p>Any example will do, does not have to be ArrayBlockingQueue. Please and thank you.</p>