public class A
{
...
public virtual void PrintMe() { /* do A */ }
}
public class B : A
{
...
public override void PrintMe() { /* do B */ }
}
public class C : B
{
...
public override void PrintMe() { /* do C */ }
private void Fun()
{
// call C::PrintMe - part one
PrintMe();
// call B::PrintMe - part two
base.PrintMe();
// call A::PrintMe - part three
???
}
}
Is the code of part two correct?
How to call
A::PrintMe
insideC::Fun
?