title: Inherit ArrayList from superclass
body: <p>I have an ArrayList in a class called QuantityCatalogue and i made another class that extends the first class.(public class Buy extends QuantityCatalogue).How can i inherit the ArrayList that i made in QuantityCatalogue and use it in Buy class?
  Is this right?</p>
  
  <pre><code>public class Buy extends QuantityCatalogue
  {
      public Buy(ArrayList&lt;String&gt; items,ArrayList&lt;Integer&gt; quantity)
      {
          super(items,quantity);
      }
  }
  </code></pre>
  
  <p>Thank you in advance</p>