If I create an object with certain properties, then use this to create another object (by passing it to a constructor) which will be initialised with those properties, this would seem to be a Prototype, but this is a little different from the GoF pattern - any thoughts? --- DannyAyers
- Looks like a CopyConstructor to me. --- LairdNelson
- You would lose the advantage of polymorphism that the GoF formulation of the Prototype pattern gives you. -- NatPryce
- Exactly..Prototyping is all about a replica of myself .I don't know what i'm.ie polymorphism..But i can duplicate myself when some body else needs a duplicate of me and he don't care about my type (Hierarchy in the inheritance tree). --Praveen
Hey guys, moved the discussion here. If you have any other questions or things to discuss, place it here instead of in the article itself. : ) -Frecklefoot