Export (0) Print
Expand All
Expand Minimize

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;
      }
   }
}

Community Additions

ADD
Show:
© 2014 Microsoft