Why is super.super.method(); not allowed in Java?
Posted
by Tim Büthe
on Stack Overflow
See other posts from Stack Overflow
or by Tim Büthe
Published on 2009-02-25T15:10:38Z
Indexed on
2010/05/07
14:28 UTC
Read the original article
Hit count: 196
java
|philosophical
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.
© Stack Overflow or respective owner