From Lazarus wiki
Revision as of 13:10, 23 February 2020 by Trev (talk | contribs) (Fixed typo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Deutsch (de) English (en)

Back to Reserved words.

The published modifier:

  • is part of object-oriented programming;
  • designates an area within a class that can be accessed from anywhere;
  • allows this section to get streaming properties just like when using the local directive {M+}.


   TEltern class = class                                // The parent class is derived from the base class
     constructor Create(intWidth, intHeight : Integer); // The constructor is public and has streaming properties
     function surface double;                           // The function is public and has streaming properties