title: how can SnakeYaml deal with object inheritance?
body: <p>I have yml file like this</p>
  
  <pre><code> Staff:
   - name: chris
     type: intern
     hourlywage: 20
   - name: kevin
     type: full
     level: 9
  </code></pre>
  
  <p>I want to parse this yml file to get one <code>InternStaff</code> object and one <code>FullStaff</code> object. Is there any way to do this?</p>
  
  <pre><code>class Staff {
      String name;
  }
  
  class InternStaff extends Staff {
      String hourlyWage;
  }
  Class FullStaff extends Staff {
      String level;
  }
  </code></pre>