Hello

,
How should I overwrite the AssignTo() method multiple times ?
Example:
Super class
procedure TElement.AssignTo(Dest: TPersistent);
var
NewDestElem : TElement;
begin
IF Dest is TElement then begin
NewDestElem := TElement(Dest);
end;
//Todo
//Assign Super Class Properties
end;
Sub class
procedure TFrontWall.AssignTo(Dest: TPersistent);
var
NewDestElem : TElement;
begin
IF Dest is Theadwall then begin
inherited AssignTo(Dest); //---> do i have to Copy Procedure of SuperClass or can i just call the Method ?
NewDestElem := TFrontWall(Dest);
end;
//Todo
//Assign Super Class Properties AND Sub Class properties
end;
I don't think this will work ?
Thanks For any Reply
