title: I need to check if a method is overridden
body: <p>this is about a hw assignment that includes reflection in Java.
  suppose I have 2 classe :</p>
  
  <pre><code>public class A{
     bool foo(){...}
  }
  
  public class B extends A{
     bool foo(){...}
  }
  </code></pre>
  
  <p>suppose I have a function that receives <code>Class&lt;?&gt;</code> parameter, and I want to check if <code>foo</code> is overridden in some derived class, without knowing if there are any, how do I do that?    </p>
  
  <p>I read a few questing regarding the same subject, that mentioned isBridge, or getDeclaringclass but can't figure out what those do.</p>
  
  <p>I have to mention that I don't know Java all that well. this is part of an Object Oriented Programming class I'm taking, so it's not meant to make us experts in Java but to demonstrate the principals. which means the solution to my problem shouldn't be too complex. </p>