I have class A which has a method sum()
.
Now class B
extends class A
and overrides sum()
method, and
class C
extends class B
and also overrides sum()
method.
Now I create an instance of class C
.
My question is: How can I call class A
's sum()
method in class C
through C
instance? One of the way is call super.sum()
in B
and C
. Is there any other way?