0

Why we need prototype design pattern

Hi We have copy constructor ( shallow copy ) and user defined constructor (deep copy) . Also it works for polymorphic behaviour as well as working in this code below: With this , I believe all cases works fine and don't understand the need of prototype pattern's need and clone method it provides https://sololearn.com/compiler-playground/cMp6WtZUaJK3/?ref=app

3rd Apr 2025, 11:37 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
1 Antwort
0
C++
6th Apr 2025, 6:29 PM
Meenakshi Guntuku
Meenakshi Guntuku - avatar