在 C# 中我可以通过base
关键字访问基类,而在 java 中我可以通过super
关键字访问它。如何在德尔福中做到这一点?假设我有以下代码:
type
TForm3 = class(TForm)
private
procedure _setCaption(Value:String);
public
property Caption:string write _setCaption; //adding override here gives error
end;
implementation
procedure TForm3._setCaption(Value: String);
begin
Self.Caption := Value; //it gives stack overflow
end;