jeudi 23 juillet 2020

Why can't we achieve deep cloning through getters in java why we need prototype design pattern with Cloneable interface?

I need to know in a case of we need to clone an instance deeply why can't we achieve that using the getter method of our original object why we need any specific design pattern or interface like Cloneable ?

Aucun commentaire:

Enregistrer un commentaire