Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'member' cannot be sealed because it is not an override
sealed was used on a member that was not also marked with override. For more information, see Inheritance (C# Programming Guide).
The following sample generates CS0238:
// CS0238.cs
abstract class MyClass
{
public abstract void f();
}
class MyClass2 : MyClass
{
public static void Main()
{
}
public sealed void f() // CS0238
// Try the following definition instead:
// public override sealed void f()
{
}
}