Constructor/ru
Deutsch · English · Español · Suomi · Русский
Зарезервированное слово constructor относится к объектно-ориентированному программированию. Оно является методом для создания класса, который создает объект класса.
Пример:
// определение класса
type
TKlasse = class
end;
var
// объявление переменной типа класса
clsKlasse: TKlasse;
begin
...
// создание класса
clsKlasse := TKlasse.Create;
...
end;См. также
From the Free Pascal wiki, page "Constructor/ru", as it stood on 2020-01-29 after a change by Bart, 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.
