Suppose there is base class A
and derived class B
.
Class A
has two functions: fun1()
and fun2()
, where fun1()
calls fun2()
.
Class B
overrides fun1()
and fun2()
, and again fun1()
calls fun2()
.
However, I'd like to call base.fun1()
in overriden fun2()
. Since base.fun1()
calls fun2()
instead of the base class' version that creates quite unfortunate loop:
fun1() -> fun2() -> base.fun1() -> fun2() -> base.fun1() -> ...
Is there any way to force base.fun1()
to call base version of fun2()
? I am aware that the real problem probably lies in bad design of those classes, but I'm still curious if it's somehow possible.