Since 'this' refers to an instance of the current type, static methods doesn't own any particular instance, it doesn't own a 'this' pointer. 'super' point to the super-class portion of the current instance, if static cannot even own a copy of the current instance how can it own the super-portion of it? Simply if you don't own a pie (this) you definitely don't have access to a portion of it (super).
posted 14 years ago
Ok, thanks...So no "this" nor "super" could be used in any static methods.
You don't have access to a this or super in a static method. But when you do have access to this or super, i.e. in an instance method, the trick of invoking a static method a.k.a. class method using an object reference works just fine:
The type of the reference is used when invoking static methods using object references. The type of this is always the class in which it is used (Bla) and the type of super is always the superclass of the class in which it is used (SuperBla).