title: Accessing sub class property
body: <p>I need to access the property CanFly the object named <code>animalObj</code>, but I do not know how.</p>
  
  <p>How can I access the property?</p>
  
  <blockquote>
    <p><img src="https://i.stack.imgur.com/MATlc.png" alt=""></p>
  </blockquote>
  
  <p>I tested with <code>animalObj[Owl][Bird][Animal]</code> but with no luck.</p>
  
  <p>Structure on classes:</p>
  
  <p>Animal --> Bird --> Owl</p>
  
  <p>Owl has the property CanFly</p>