C
Chris
I'd like to force the use of the super keyword when accessing a field in
a parent class. For example, if Parent contains
int foo;
and Child extends Parent, then any reference to foo in Child should be
written as:
super.foo = whatever;
The reason is that this convention makes the code much easier to follow.
I can't find a switch in Eclipse, though, that would give a warning if
the super keyword isn't there. Is there any other way to force it?
a parent class. For example, if Parent contains
int foo;
and Child extends Parent, then any reference to foo in Child should be
written as:
super.foo = whatever;
The reason is that this convention makes the code much easier to follow.
I can't find a switch in Eclipse, though, that would give a warning if
the super keyword isn't there. Is there any other way to force it?