C
chinaandys
Unregistered / Unconfirmed
GUEST, unregistred user!
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm2 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
constructor Create(Aowner:Tcomponent;S:String);override;
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
constructor TForm2.Create(Aowner:Tcomponent;S:String);
begin
inherited Create(AOwner);
self.Caption:=s;
end;
end.
----------------------编译错误提示--------------------------
[Error] Unit2.pas(15): Declaration of 'Create' differs from previous declaration
[Fatal Error] Unit1.pas(22): Could not compile used unit 'Unit2.pas'
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm2 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
constructor Create(Aowner:Tcomponent;S:String);override;
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
constructor TForm2.Create(Aowner:Tcomponent;S:String);
begin
inherited Create(AOwner);
self.Caption:=s;
end;
end.
----------------------编译错误提示--------------------------
[Error] Unit2.pas(15): Declaration of 'Create' differs from previous declaration
[Fatal Error] Unit1.pas(22): Could not compile used unit 'Unit2.pas'