Edit

Share via


Compiler Error CS0205

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:

C#
// 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()  
   {  
   }  
}