type 區輸入類骨架:type
TMyClass = class
property s: string;
end;
type
TMyClass = class
private
Fs: string;
procedure Sets(const Value: string);
published
property s: string read Fs write Sets;
end;
{ TMyClass }
procedure TMyClass.Sets(const Value: string);
begin
Fs := Value;
end;
F + 屬性名 (首字母大寫)。Set + 屬性名 (首字母大寫)。published 區 (可見於 Object Inspector)。