Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.0.0 / tests / webtbs / tw21654.pp
Size: Mime:
program test;

{$mode objfpc}

Type

{ TMyGeneric }

 Generic TMyGeneric<T> = Class
  Private
    bValue: Integer; Static;
    Function GetValue: Integer;
  Public
    Property Value: Integer Read GetValue;
    Constructor Create(Const aValue: Integer);
End;

{ TMyGeneric }

Function TMyGeneric.GetValue: Integer;
Begin
  Result := bValue;
end;

Constructor TMyGeneric.Create(Const aValue: Integer);
Begin
  bValue := aValue;
End;

Type TMyClass = Specialize TMyGeneric<TObject>;

begin
end.