File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on Prototype pattern

 
Sub swamy
Ranch Hand
Posts: 121
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Went through a couple of links regarding Prototype pattern. The following is my understanding

1) It can only be used when the shallow copy of the object would be sufficient - dont we need to have a complete copy of the object in most cases.

2) Whereever we use Cloneable with a suitable Abstract/Concrete, would that become Prototype ?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic