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.
'function' is abstract but it is contained in nonabstract class 'class'
A method cannot be an abstract member of a nonabstract class.
The following sample generates CS0513:
// CS0513.cs
namespace x
{
public class clx
{
abstract public void f(); // CS0513, abstract member of nonabstract class
}
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.