Public/de
Deutsch · English
Zurück zu den reservierten Wörtern.
Der Modifier public gehört zur Programmierung von Unterprogrammen.
Der Modifier public macht ein Unterprogramm innerhalb der Unit öffentlich.
Das ist dann sinnvoll, wenn das Unterprogramm innerhalb der Unit nicht gesehen wird.
Solange das Unterprogramm nicht im interface-Abschnitt der Unit deklariert wurde ist es für andere Units nicht sichtbar.
function subTest: string; [Public];
begin
subTest := 'abc';
end;From the Free Pascal wiki, page "Public/de", as it stood on 2020-02-23 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
