Jak zdobyć całą super klasę klasy Java
Class C = getClass();
while (C != null) {
System.out.println(C.getName());
C = C.getSuperclass();
}
Class C = getClass();
while (C != null) {
System.out.println(C.getName());
C = C.getSuperclass();
}