title: Adding ChildClass object to ArrayList<BaseClass>
body: <p>If we have a <code>User</code> base class with properties <code>username</code> and <code>password</code>.</p>
  
  <p>And a child class <code>SpecialUser</code>, with an extra property <code>special</code>.</p>
  
  <p>I know I can declare <code>ArrayList&lt;User&gt; users = new ArrayList&lt;User&gt;();</code> and then add <code>SpecialUser</code> object to <code>users</code>, but I can only access the properties inherited from base class (<code>username</code> and <code>password</code>) that way.</p>
  
  <p>Is there a way to add a <code>SpecialUser</code> to the ArrayList and be able to access <code>special</code> property? Or should they be stored seperately?</p>
  
  <p>Kind regards</p>