5,388
社区成员
发帖
与我相关
我的任务
分享
type
TEditEx = class(TEdit)
private
m_Ver:string;
protected
public
constructor Create(Owner: TComponent); overload; virtual;
property MyVer:string read m_Ver;
published
end;
constructor TEditEx.Create(Owner: TComponent);
begin
inherited Create(Owner); // 初始化继承下来的部分
Text:='test';
m_Ver:='1.0';
end;
constructor Create(Owner: TComponent); overload; virtual;
//改成
constructor Create(Owner: TComponent); override;