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
1 Antwort
0
C++