[fpc-devel] Abstract functons with parameters on classes

Christian Iversen chrivers at iversen-net.dk
Thu Jul 27 18:02:13 CEST 2006


On Thursday 27 July 2006 17:49, ik wrote:
> Hi all,
>
> Is there a way to do the following ?
> ...
> {$MODE OBJFPC}
> type
>   TA = class
>   public
>     function fnc : Boolean; virtual; abstract;
>   end;
>
>
>   TA2 = class (TA)
>   public
>     function fnc (const a : Boolean) : Boolean; override;
>   end;
> ...

Maybe the "overload" keyword works between classes? I don't know, I haven't 
tried it yet. You could.

-- 
Regards,
Christian Iversen



More information about the fpc-devel mailing list