Type
TClndar=class
Year,Month,Day:Integer;
Property Text:string read GetText;
Procedure SetValue(y,m,d:Integer);
Function Leapyear:Boolean;
End;在这个类的声明中Property Text:string read GetText;这行string read GetText
是什么意思?它说明了Text是什么属性?Type
TListColumns = class(TCollection)
private
......
protected
function GetOwner:TPersistent;override;
......
public
constructor Create(AOwner:TCustomListView);
property Items[Index:Integer]:TListColumn read GetItem write
SetItem;default;
end;1.在这段代码中function GetOwner:TPersistent;override;这行中override是什么意思?2.constructor Create(AOwner:TCustomListView);是不是这个类的对象的构造函数一样的函数呀?3.property Items[Index:Integer]:TListColumn read GetItem write
SetItem;default;
在这行中TListColumn read GetItem write SetItem;default;每一个都分别代表什么意思?
TClndar=class
Year,Month,Day:Integer;
Property Text:string read GetText;
Procedure SetValue(y,m,d:Integer);
Function Leapyear:Boolean;
End;在这个类的声明中Property Text:string read GetText;这行string read GetText
是什么意思?它说明了Text是什么属性?Type
TListColumns = class(TCollection)
private
......
protected
function GetOwner:TPersistent;override;
......
public
constructor Create(AOwner:TCustomListView);
property Items[Index:Integer]:TListColumn read GetItem write
SetItem;default;
end;1.在这段代码中function GetOwner:TPersistent;override;这行中override是什么意思?2.constructor Create(AOwner:TCustomListView);是不是这个类的对象的构造函数一样的函数呀?3.property Items[Index:Integer]:TListColumn read GetItem write
SetItem;default;
在这行中TListColumn read GetItem write SetItem;default;每一个都分别代表什么意思?
解决方案 »
- 写个好玩的程序,谁来试下!!!
- LISTVIEW
- 把edit.text的值作为阈值,对数据库进行更新,但老是提示错误,请高手指教!
- 如何将sybase数据库中的数据导入到sql server数据库中去(两个数据库中的表完全一样)?
- 怎样记录键盘的按键操作,只为学习不是做嘿软!!
- 请问如何生成资源管理器树型结构
- 如何不必添加空记录而在打印完数据后继续画表格线?用Reportbuilder
- ADO里面可以指定那些字段更新,那些字段不更新吗???
- 谁做过txt文件和Prodox数据库之间转换的工具!
- *** 请问在Delphi中如何实现VB中的Split函数的功能?一定给分 ***
- 请大家不吝赐教:在做多层程序时,老是出现'灾难性故障',原因有哪些?
- 有没有函数直接得到一个数值型数组中的最大值
2、构造函数通常从父类继承,基本的都一样,再添加一些自己特有的东西
3、这行定义ITEMS为一个属性read GetItem表示该属性从GetItem(方法)取值
同理,该属性通过SetItem写(write)值
default后面定义该属性的默认值
它说明Text这个属性,类型为String,当你用TClndar.Text来取Text属性的值时,它将执行GetText这个函数来返回Text的值
当然要