title: How to get an instance of my object's parent
body: <p>Is there a way in Java to get an instance of my object's parent class from that object?</p>
  
  <p>ex. </p>
  
  <pre><code>public class Foo extends Bar {
  
       public Bar getBar(){
            // code to return an instance of Bar whose members have the same state as Foo's
       }
  
  }
  </code></pre>