1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| type
TmysString = Class(Tobject)
Private
fvalue : String ;
Procedure Setvalue (avalue : String) ;
Function GetValue : String;
Public
Constructor Create(avalue : String) ;
Property Value : String Read GetValue Write Setvalue ;
end;
implementation
Procedure TmysString.Setvalue (avalue : String) ;
begin
fvalue := avalue;
end;
Function TmysString.GetValue : String;
begin
Result :=fvalue;
end;
Constructor TmysString.Create(avalue : String) ;
begin
fvalue := avalue;
end; |