M
MAGXJ500T
Unregistered / Unconfirmed
GUEST, unregistred user!
代码:
type
TObj1 = class(TComponent)
public
constructor Create(AOwner: TComponent;
const Parm1: Integer);
overload;
destructor Destroy;
override;
end;
constructor TObj1.Create(AOwner: TComponent;
const Parm1: Integer);
begin
inherited Create(AOwner);
...
end;
编译的时候出现以下警告:
Method 'Create' hides vertual method of base type 'TComponent'
请问应该如何消除这个警告?
type
TObj1 = class(TComponent)
public
constructor Create(AOwner: TComponent;
const Parm1: Integer);
overload;
destructor Destroy;
override;
end;
constructor TObj1.Create(AOwner: TComponent;
const Parm1: Integer);
begin
inherited Create(AOwner);
...
end;
编译的时候出现以下警告:
Method 'Create' hides vertual method of base type 'TComponent'
请问应该如何消除这个警告?