The super-class can be referred to by the keyword, super, and the current class can be referred to via, this, but is there a way to refer to the class that contains the nested class/anonymous class?
The super-class can be referred to by the keyword, super , and the current
Share
Yes. Like this:
thisfrom Java anonymous class