Hi, anyone please help me with copy constructor and what is deep and shallow constructor?
Post a Reply
|Oldest Newest Rating|
· June 13, 2014
To sum up what the site says,
Shallow copying is basically the default c++ way of copying a class, that is to say it copies each member separately. - Read more for problems with this method
Deep copying is duplicates the object or variable being pointed to, which solves one of the problems with Shallow copying. - Again read the site for more information
-- The pages summary --
Used in many types of software including music players, video games, and many large scale applications.
|Bucky Roberts Administrator|