类1
Panel = Class(TPanel)
public
constructor Create(c:TComponent);
End;
implementation
constructor Panel.Create(c:TComponent);
begin
inherited Create(c);
end;类2
PanelStep = Class(Panel)
public
constructor Create(c:TComponent);
End;
implementation
constructor PanelStep.Create(c:TComponent);
begin
inherited Create(c);
end;PanelStep 调用 Panel.Create
总是报错!!!!????
Panel = Class(TPanel)
public
constructor Create(c:TComponent);
End;
implementation
constructor Panel.Create(c:TComponent);
begin
inherited Create(c);
end;类2
PanelStep = Class(Panel)
public
constructor Create(c:TComponent);
End;
implementation
constructor PanelStep.Create(c:TComponent);
begin
inherited Create(c);
end;PanelStep 调用 Panel.Create
总是报错!!!!????
public
constructor Create(c:TComponent);override;
End;
implementation
constructor Panel.Create(c:TComponent);
begin
inherited Create(c);
end;
PanelStep = Class(Panel)
public
constructor Create(c:TComponent); override;
End;
implementation
constructor PanelStep.Create(c:TComponent);
begin
inherited Create(c);
end;
begin
inherited Create(c);
end;
除非不要调用 inherited Create(c);