Export (0) Print
Expand All
Expand Minimize
1 out of 2 rated this helpful - Rate this topic

Compiler Error CS0238 

Error Message

'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()
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.