Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Architect Certification (OCMJEA)
Question on Prototype pattern
posted 9 years ago
Went through a couple of links regarding Prototype
. 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
Simple Pattern Question
Prototype Java Design Pattern
Confusion regarding which pattern!
why clone() ?
Aggregation and Composition