Avoid clone

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.

Similar Posts:

Post a Comment

Your email is never published nor shared.