[fpc-pascal] What is the difference between the declarations at the beginning of a class and those declared in the public section?
Frank Church
vfclists at gmail.com
Sun Nov 6 19:26:32 CET 2011
On 6 November 2011 14:43, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> On 06 Nov 2011, at 15:34, Frank Church wrote:
>
> > What is the difference between field declarations at the beginning of a
> > class and those declared in the public section?
>
> There is no "the" public section. You can declare as many public (and
> private, and ...) sections as you want.
>
> > They are all visible aren't they, what is the conceptual difference
> between
> > them?
>
> None. The default visibility of fields in a class declaration is "public".
>
>
> Jonas
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
So it means that unless a field or method is in the private or protected
section it is automatically public?
--
Frank Church
=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111106/ecc9dbb0/attachment.html>
More information about the fpc-pascal
mailing list