Problem Statement
When should you use the Prototype pattern in object-oriented design?
Explanation
The Prototype pattern is used when the type of objects to create is determined at runtime and object creation is expensive. It builds a new object by copying a prototype instance rather than instantiating classes via new.
Practice Sets
This question appears in the following practice sets: