Constructor
From Lazarus wiki
Jump to navigationJump to search
│
Deutsch (de) │
English (en) │
español (es) │
suomi (fi) │
русский (ru) │
Constructor
is a class builder method that creates the object of that class.
The word constructor
is a reserved word.
Example:
// class definition
type
TKlasse = class
end;
var
// declare variable of type of class
clsKlasse: TKlasse;
begin
...
// create class
clsKlasse := TKlasse.Create;
...
end;