首页
社区
课程
招聘
为什么还说有抽象类的方法
发表于: 2005-11-6 18:48 5685

为什么还说有抽象类的方法

2005-11-6 18:48
5685
TStrings是个抽象类,于是我建立了一个子类
可是编译的时候还是报
FLines := THexStrings.Create;   // 这句产生Warning
[Warning] HexView.pas(263):
Constructing instance of 'THexStrings' containing abstract methods
  
THexStrings = class(TStrings)
private
  // Memo: TCustomMemo;
protected
   procedure Put(Index: Integer; const S: string); override;
   procedure SetTextStr(const Value: string); override;
   procedure SetUpdateState(Updating: Boolean); override;
public
   procedure Clear; override;
   procedure Delete(Index: Integer); override;
   procedure Insert(Index: Integer; const S: string); override;
end;

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 216
活跃值: (40)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
you must override the abstract methods when they derive from that base class.
2005-11-6 22:56
0
游客
登录 | 注册 方可回帖
返回