OOP & Design Patterns - Prototype Pattern - Deep Copy vs Shallow Copy
Suppose you want to implement a prototype pattern for an object that contains references to other objects which themselves may reference back to the original object (cyclic references). Which approach correctly handles deep copying in this scenario?
