I have two classes - the base class and the inherited class as follows.
Base class:
TAlarm = class(System.Object)
private:
protected:
public:
constructor (tag:TTagname);
end;
inherited class:
TAlarmMsg = class(TAlarm)
public
constructor (aname:string);
method GetAlarmMsg:string; override;
method SendMsg(msg:string);
end;
Constructors:
constructor TAlarm(tag:TTagname);
begin
Tagname := tag;
end;
constructor TAlarmMsg(aname:string);
begin
inherited TAlarm(aname); <========Here is my problem.
name := aname.ToCharArray;
end;
No matter how and how I call or play with the inherited constructor, I save the following error messages when compiling the source file.
“I cannot access until the completion of the inherited constructor.” AND / OR - It is not possible to find a suitable constructor in the base class, therefore, a manual call of the inherited
, . . -, Delphi Prism Wikipedia (http://prismwiki.embarcadero.com/en/Constructors).
, ?
,