samedi 9 mars 2019

What is the difference between Prototype Design Pattern and simple Java clone?

I am new to Design pattern. I just learned that Prototype Design Pattern minimizes instance creation process. Ultimately, it calls .clone() method to create duplicate instance of the object.

So what is the difference between calling a normal clone method than going for Prototype Design Patter?

Aucun commentaire:

Enregistrer un commentaire