Imagine I have a class like this :
public class Alpha {
int i = 5;
@Override
public String toString() {
return "Alpha [i=" + i + "]";
}
public String superToString() {
return super.toString();
}
}
then I do in a main:
Alpha o = new Alpha();
System.out.println(o.toString()); // display ==> Alpha [i=5]
System.out.println(o.superToString()); // display ==> pojos.Alpha@77468bd9
all is ok. now, imagine i don't have my method called superToString() in Alpha. is there a way to call method of parent of my Alpha instance ? (in this example, toString of Object)