title: How to get fields of parent class using reflection
body: <p>Suppose there is a class : </p>
  
  <pre><code>class A {
    int a;
  }
  </code></pre>
  
  <p>And then there is a child of class A : </p>
  
  <pre><code>class B extends A {
    int b;
  }
  </code></pre>
  
  <p>if i call <code>B.class.getDeclaredFields()</code> i'll only get 'b' field.</p>
  
  <p>Now how can i get fields of parent class in this case 'a'.</p>