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.
Cannot call an abstract base member: 'method'
You cannot call an abstract method because it does not have a method body. For more information, see Abstract and Sealed Classes and Class Members.
The following sample generates CS0205:
// CS0205.cs
abstract public class MyClass
{
abstract public void M();
}
public class MyClass2 : MyClass
{
public override void M()
{
base.M(); // CS0205, delete this line
}
public static void Main()
{
}
}
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.