[fpc-pascal] Using properties in interfaces
Michael Fuchs
freepascal at ypa-software.de
Tue Mar 22 10:59:07 CET 2011
Hello,
if I understand the documentation correct, this is the only way using a
property in an interface:
IMyInterface = interface
function GetTag: Integer;
procedure SetTag(AValue: Integer);
property Tag: Integer read GetTag write SetTag;
end;
Or exists a possibilty to define the interface like that:
IMyInterface = interface
property Tag: Integer;
end;
And the programmer who implement this interface could decides how to
implement the property?
regards
Michael
More information about the fpc-pascal
mailing list