关于类成员,两种写法有和不同?
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
procedure test;
private
{ Private declarations }
public
{ Public declarations }
end;
//另外一种写法:
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
procedure test;
{ Private declarations }
public
{ Public declarations }
end;
[解决办法]
没有加访问限制标志(private,protected,public,published)的默认为public
[解决办法]