Class A
{
public virtual void Add() { .....}
}
Class B : A
{
public override void Add() {.....}
}
Class C : B
{
// how to invoke Add() of class A here.
}
Multi level inheritance
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Mar 15, 2012, 4:19 AM EDT
base.Add() will of course just call B.Add() and
((A)this).Add() will cause C.Add() to be called recursively because it's a virtual method and '(A)this' is still a C.