Copy object data fields into subclass instance
问题 I have two class, TNode and TMaster. I subclassing TMaster from TNode. The goal is to create a TMaster instance that contains all the data of a previously created TNode instance. Is there any 'built-in' method to achieve this, or it should be done manually? type Tnode = class(TObject) private FSite: TSite; FhndNode: THandle; FnodeID: word; FslaveID: longword; FcoordX: double; FcoordY: double; FhndSubRect: THandle; FdNodes: TdNodes; Fdestinations: Tdestinations; FGroup: byte; FDomain: byte;