The _____ pattern is used to create a copy of the existing object to enhance performance?

  • Singleton
  • Prototype
  • Decorator
  • Bridge
The Prototype design pattern is used to create a copy of an existing object to enhance performance. It is particularly useful when creating new objects is more expensive than copying an existing one, such as in scenarios where complex object initialization is involved.
Add your answer
Loading...

Leave a comment

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