[Lazarus] "default" visibility for class members

xrfang xrfang at gmail.com
Wed Feb 27 08:40:02 CET 2013


Hi All,

My class looks like this:

TMyClass = class
  FField1: Integer;
private
  FField2: string;
public
  FField3: string;
end;

Question is, is FField1 private or public or protected?  For all lcl classes,
I see a lot of fields above "private", it looks like they are same as "public", 
because I can access them from outside. But why allow them to be put there instead of directly under "public"?

Thanks,
Shannon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130227/1cc8dc41/attachment-0002.html>


More information about the Lazarus mailing list