Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on Prototype pattern

 
Sub swamy
Ranch Hand
Posts: 121
  • 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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic