title: Checking class of an instance in Java
body: <p>How do I see if a class overrides another class?</p>
  
  <p>For example: Say <code>bob</code> was a <code>Bot</code>, a class which overrides the abstract class <code>Unit</code>. How can I make the following evaluate to true?</p>
  
  <pre><code>bob.getClass() == Unit.class
  </code></pre>