Share via


Compiler Error CS0534

'function1' does not implement inherited abstract member 'function2'

A class is required to implement all the abstract members in the base class, unless the class is also abstract.

The following sample generates CS0534:

// CS0534.cs
namespace x
{
   abstract public class clx
   {
      public abstract void f();
   }

   public class cly : clx   // CS0534, no override for clx::f
   {
      // uncomment the following sample override to resolve CS0534
      // override public void f()
      // {
      // }

      public static int Main()
      {
         return 0;
      }
   }
}