When to use prototype design pattern?

Prototype design pattern is used when the Object creation is a costly affair and requires a lot of time and resources and you have a similar object already existing . Prototype pattern provides a mechanism to copy the original object to a new object and then modify it according to our needs.

Sizin İçin Seçtik  How do I make a list of objects in flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *