中国开发网: 论坛: 程序员情感CBD: 贴子 692583
好望角
怎么写?给个例子。
Delphi的内容

TDemo = class(TObject)
private
function GetArray1(Index: Integer): Integer;
function GetArray2(Index: string): Integer;
public
property Array1[Index: Integer]:Integer read GetArray1;
property Array2[Index: string]:Integer read GetArray2;

end;

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录