Let's say I have the following hierarchy:
public class MyClass
{
protected virtual void Method() { ... }
}
public class MySubClass : MyClass
{
public new virtual void Method() { ... }
}
public class MySubSubClass : MySubClass
{
}
Is it possible to override the implementation of the protectedMethod () method so that calls from other methods defined in MyClass are sent to the implementation in MySubSubClass?
If this is not possible, it would be nice to enlighten why.
source
share