Polymorphic deep copy?


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Charles Hannum Jr on December 02, 2001 at 11:30:30:

How do you handle a deep copy of the list of trucks?

The way you do a deep copy is to copy member fields individually, and this is certainly possible, but the specific type of truck will certainly be lost in the process. Currently, I've just commented the code to that effect but is there a better way?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]