You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following program prints "1" instead of "2" as required. That is because the override in Derived is viewed by the runtime as overriding the wrong method (the C# compiler fails to produce the required methodimpl/.override data in the generated assembly).
A similar program with Base.M being abstract generates a type load exception at runtime.
The following program prints "1" instead of "2" as required. That is because the override in
Derived
is viewed by the runtime as overriding the wrong method (the C# compiler fails to produce the required methodimpl/.override
data in the generated assembly).A similar program with
Base.M
beingabstract
generates a type load exception at runtime.The text was updated successfully, but these errors were encountered: