E2539 Missing implementation for abstract method '%s.%s' (Delphi)

From RAD Studio
Jump to: navigation, search

Go Up to Error and Warning Messages (Delphi)

This occurs when you fail to implement abstract methods in a derived class that is also declared sealed (can no longer be derived from).


program E2539;
{E2539 Missing implementation for abstract method '%s.%s'}
{$APPTYPE CONSOLE}

uses
  SysUtils;

type
  MyClass = class abstract
    public
      procedure MyAbstract (a:integer; s: string); virtual; abstract;
  end;

  MyDerivClass = class sealed(MyClass)
  public

  end;

 var
   MyObj: MyDerivClass;

begin
   MyObj := MyDerivClass.Create;

end.