Инициализация типов / Коллекции

uses System.SysUtils;

type
  TEmployee = class
  public
    FirstName, LastName: string;
    constructor Create(const AFirstName,
      ALastName: string);
  end;

constructor TEmployee.Create(const AFirstName,
  ALastName: string);
begin
  FirstName := AFirstName;
  LastName := ALastName;
end;

const
  //static array of integer
  PrimeNumbers: array [0..7of Integer =
    (235711131719);

  //static two-dimensional array 2 x 3
  Matrix: array [0..10..2of Integer =
    ((123), (456));

var
  GameList: TArray<string>;
  Employees: TArray<TEmployee>;
  Grid: TArray<TArray<Integer>>;
  Number: Integer;
begin
  //dynamic array of string
  GameList := ['soccer''hockey''basketball'];

  //dynamic array of Employee class
  Employees := [
    TEmployee.Create('Pavlov''Anton'),
    TEmployee.Create('Kirienko''Elena')];

  //dynamic two-dimensional array
  Grid := [[123], [456]];

  for Number in PrimeNumbers do
    Write(Number, ' ');
  WriteLn;
  WriteLn(string.Join(', ', GameList));
  WriteLn(Employees[0].FirstName);
  WriteLn(Matrix[12]);
  //6

  WriteLn(Grid[0][1]);
  //2
end.