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