[fpc-pascal] Published -> Public

José Mejuto joshyfun at gmail.com
Thu Apr 15 23:49:43 CEST 2010


Hello FPC-Pascal,

If I have a class like:

TMyClassPublished=class(TObject)
published
  procedure MyProcedure; virtual;
end;

And a derived one:

TMyClassDerived=class(TMyClassPublished)
public
  procedure MyProcedure; override;
end;

Is there any difference in the derived one with less visibility in the
method ? This means, does it use less/more memory, more/less calling
speed, more/less RTTI information, ... ?

Thank you.

-- 
Best regards,
 José




More information about the fpc-pascal mailing list