Calling overriden base method

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My class hierarchy is something like C1 -> C2 -> C3 and in C3 I override a
method from C2 which in turn has overriden this method from C1, is there a
way to call C1's version of the method? This would be something like
base.base.MethodName() or C1.MethodName().

It would be a great help if anyone can suggest anything on this.
 
My class hierarchy is something like C1 -> C2 -> C3 and in C3 I override a
method from C2 which in turn has overriden this method from C1, is there a
way to call C1's version of the method? This would be something like
base.base.MethodName() or C1.MethodName().

It depends on which language you're using. You can't do it in C#.



Mattias
 
Back
Top