Delphi Error – E2539 Missing implementation for abstract method ‘%s.%s’

Delphi Compiler Error

E2539 Missing implementation for abstract method ‘%s.%s’

Reason for the Error & Solution

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.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Delphi Compiler Error E2313 Attribute – Known attribute cannot specify properties Reason for the Error & Solution No further information...
Delphi Compiler Error E2379 Virtual methods not allowed in record types Reason for the Error & Solution No further information...
Rodrigo , one of the long time Delphi Developer has been working on one of his personal project “Delphi IDE...