Why is super.super.method(); not allowed in Java?
- by Tim Büthe
I read this question and thought that would easily be solved (not that it isn't solvable without) if one could write:
@Override
public String toString() {
return super.super.toString();
}
I'm not sure if it is useful in many cases, but I wonder why it isn't and if something like this exists in other languages.
What do you guys think?
EDIT:
To clarify: yes I know, that's impossible to at to Java and I don't really miss it. This is nothing I expected to work and was surprised getting a compiler error. I just had the idea and like to discuss it.