using System; abstract class AbstractBase{ public abstract void Foo();} class Base : AbstractBase{ public sealed override void Foo() { }} class Derived : Base{ public override void Foo() { }} public class Test{ public static void Main() { }}
Standard input is empty
prog.cs(17,30): error CS0239: `Derived.Foo()': cannot override inherited member `Base.Foo()' because it is sealed prog.cs(10,37): (Location of the symbol related to previous error) Compilation failed: 1 error(s), 0 warnings
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!