If you override a method from your superclass (or superclass of a superclass, etc.), super.theMethod() will refer to the original method, and not to the one with which you redefined it. If you have not performed the actual redefinition of theMethod , super.theMethod() will act exactly like theMethod() .
In this case, I assume that you did not redefine getClass() (in fact, I know that you did not do this because it is final), so super.getClass() acts exactly like getClass() , i.e. in any case, the getClass method The Object class is called.
sepp2k
source share