Class var as Property |
Smart pascal source code
type TBase = class class var v: Integer; property rv: Integer read v; property wv: Integer write v; property rwv: Integer read v write v; end; { main.pas } Begin TBase.v := 1; Writeln(TBase.rv); TBase.wv := 2; Writeln(TBase.rwv); TBase.rwv := 3; Writeln(TBase.v); { ### CONSOLE OUTPUTS ### 1 2 3 }