私の状況はこれです:
public class InheritedClass : BaseClass
{
public override void SomeMethod()
{
AnotherMethod();
}
public override void AnotherMethod()
{
}
}
public class BaseClass
{
public virtual void SomeMethod()
{ }
public virtual void AnotherMethod()
{ }
}
では、呼び出すときにどのメソッドが呼び出されますInheritedClassInstance.SomeMethod
か?InheritedClassInstance.AnotherMethod
それは、、またはBaseClassを呼び出しますAnotherMethod
か?