还是不太明白,delphi的类的属性加与不加property有何不同?
wtjd 2009-08-16 10:15:09 例如,我在delphi中申请下面了这个类,
MyClass =class
age :Integer;
Function GetAge:Integer;
Procedure SetAge(const Value:Integer);
public
property Age1:Integer read age write age;
end;
我不知道age属性与Age1属性有何不同, 加了property与不加propert有什么不样?