[fpc-pascal] What is the difference between the declarations at the beginning of a class and those declared in the public section?
Michael Van Canneyt
michael at freepascal.org
Sun Nov 6 16:19:25 CET 2011
On Sun, 6 Nov 2011, Jonas Maebe 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".
Unless the class was compiled with {$M+} or is a descendant of such a class,
then it is Published.
Michael.
More information about the fpc-pascal
mailing list