I have a doubt about if what I want to do is possible. I have three classes A, B y C. B extends A and C extends B.
C -> B -> A.
In C class, I want to call a method directly of A class. Something like
super.super.method();
do I have any chance of do it?
The Reason:
A and B are system classes. I am trying to make B handle some situations in a different way and I have accomplished it except for one method. In other methods what I did is to override them and pass the arguments modified.
Now I have a method that I cannot solve just modifying the arguments so I want to fully override it.
B
@Override
public void draw(Canvas canvas) {
super.draw(canvas); // A method
** other stuff **
}
What I want to do in C
@Override
public void draw(Canvas canvas) {
super.super.draw(canvas); // A method
** new stuff **
}