vovan1993
14-04-2011, 13:51
Помоги разобраться где описывается конструктор и деструктор (в type??)или может я где нить ошибся
type
TClass=class;
Complex=class;
TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Memo1: TMemo;
Label3: TLabel;
Label4: TLabel;
constructor Create();
destructor Destroy ();
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
constructor TClass.Create();
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var z1,z2,z3:Complex;
begin
z1:=Complex.Create;
end;
end.
type
TClass=class;
Complex=class;
TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Memo1: TMemo;
Label3: TLabel;
Label4: TLabel;
constructor Create();
destructor Destroy ();
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
constructor TClass.Create();
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var z1,z2,z3:Complex;
begin
z1:=Complex.Create;
end;
end.