C++ Constructors Question:

What is deep copy?

C++ Constructors Interview Question
C++ Constructors Interview Question

Answer:

A deep copy creates a copy of the dynamically allocated objects too. You would need to use a copy constructor and overload an assignment operator for this.


Previous QuestionNext Question
What is shallow?Tell me what are the restrictions apply to constructors and destructors?