Avoid clone

Tags:

Avoid clone

GoF’s pattern catalog is not almighty. Cloning get too complicated when it should be done in a complicated object hierarchy. Use the factory pattern or copy constructor, instead.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *