Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type
- TPersonne = class
- Nom : String;
- Age : Integer;
- constructor Create(aNom : String; aAge : Integer);
- begin
- Nom := aNom;
- Age := aAge;
- end;
- end;
- var personnes : array of TPersonne;
- personnes.Add(
- new TPersonne('Albert', 30),
- TPersonne.Create('Beatrice', 35),
- new TPersonne('Charles', 24),
- new TPersonne('Djamila', 20)
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement