Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between shallow copy and deep copy?

Answer Posted / hrpynux@gmail.com

A shallow copy constructs a new compound object and then (to the extent possible) inserts references into it to the objects found in the original. A deep copy constructs a new compound object and then, recursively, inserts copies into it of the objects found in the original.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is malloc in c++?

1018


Explain queue. How it can be implemented?

1159


Write a program to add three numbers in C++ utilizing classes.

1119


How can you quickly find the number of elements stored in a dynamic array?

1054


What are shallow and deep copies?

1118


What information can an exception contain?

1145


What are the defining traits of an object-oriented language?

1210


Write is a binary search tree? Write an algo and tell complexity?

1025


How do I use arrays in c++?

1005


What is scope in c++ with example?

1113


What problems might the following macro bring to the application?

1057


Difference between strdup and strcpy?

1206


What are stacks?

1066


Can I uninstall microsoft c++ redistributable?

1118


When you overload member functions, in what ways must they differ?

1048