What's the proper convention to access ancestor and parent methods from down an inheritance chain?
For example, methodA()
resides in the base ancestor class and methodB()
resides in the parent class. If I'm in a child/subclass that extends parent (which in turn extended the ancestor/base class), what is the proper way to access methodA()
?
Obviously super.super.methodA()
is not allowed.
What does work is super.methodA()
, this.methodA()
and simply calling methodA()
on it's own.
Which of the above three cases is the 'correct' way to call methodA()
that resides in the ancestor class?