When Joshua Bloch mentions that Cloneable interface is broken in Java, why is the Prototype pattern, which uses clone() method to facilitate object creation, not considered an anti-pattern in Java development?
"It's a shame that Cloneable is broken, but it happens." - Joshua Bloch
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire