title: Can you use an interface as type for an ArrayList?
body: <p>Interface    </p>
  
  <pre><code>public interface Inter
  {
  }
  </code></pre>
  
  <p>Is it possible for this to be done because, the objects i am placing inside the ArrayList do not share the same parent class but, they all share the same interface.</p>
  
  <p>Inside my Main method  </p>
  
  <pre><code>List&lt;Inter&gt; inventory = new ArrayList&lt;Inter&gt;();
  </code></pre>