title: Retrieving the inherited attribute names/values using Java Reflection
body: <p>I've a Java object 'ChildObj' which is extended from 'ParentObj'. Now, if it is possible to retrieve all the attribute names and values of ChildObj, including the inherited attributes too, using Java reflection mechanism?</p>
  
  <p><a href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html#getFields()" rel="noreferrer">Class.getFields</a> gives me the array of public attributes, and <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html#getDeclaredFields()" rel="noreferrer">Class.getDeclaredFields</a> gives me the array of all fields, but none of them includes the inherited fields list.</p>
  
  <p>Is there any way to retrieve the inherited attributes also?</p>