Forum: Object-Pascal / Delphi-Language
Delphi
by jbg,
11. Jul 2007
type
TTest = class(TObject)
private class var
FMyProp: Integer;
FMySecondProp: string;
public
class function DoSomething: Integer; static; { eine echte statische Methode ohne versteckten Self: TClass Parameter }
class property MyProp: Integer read FMyProp write FMyProp;
class property MySecondProp: string read FMySeondProp write FMySecondProp;
end;
Forum: Object-Pascal / Delphi-Language
Delphi
by jbg,
11. Jul 2007
Klassen-Eigenschaften/Variablen/Konstanten gibt es erst ab Delphi 2006.