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 both abstract and sealed
A class member cannot be both abstract and sealed.
The following sample generates CS0502:
// CS0502.cs
public class B
{
abstract public void F();
}
public class C : B
{
abstract sealed override public void F() // CS0502
{
}
}
public class CMain
{
public static void Main()
{ }
}