Revision 2 of 3, by WikiArchive on 11-4-2026. The page as it is now.
Constructor/fi
Varattu sana constructor kuuluu olio-ohjelmointiin. Constructor on luokan (class) rakentaja metodi joka luo luokan oliot.
Esimerkki:
// Luokan määrittely
type
TKlasse = class
end;
var
// Määritellään luokan olio
clsKlasse: TKlasse;
begin
...
// luodaan luokan olio
clsKlasse := TKlasse.Create;
...
end;Katso myös
- Olion purkaja (
destructor)
From the Free Pascal wiki, page "Constructor/fi", as the Internet Archive kept it on 2023-03-20. 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.
