sealed
sealed class FinalClass { }
class MyClass : MyBaseClass { public sealed override void FinalMethod() { // implementation } } class DerivedClass : MyClass { public override void FinalMethod() // 出错 { } }