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

Can we run c program in turbo c++?

1133


What is :: operator in c++?

1110


Define a constructor - what it is and how it might be called (2 methods)?

1228


What's the order in which the objects in an array are destructed?

1471


What can c++ be used for?

1162


When does a 'this' pointer get created?

1153


What is guard code in c++?

1226


How do you initialize a string in c++?

1055


Explain the difference between abstract class and interface in c++?

1039


Can a program run without main?

1333


What is the meaning of string in c++?

1112


Define the process of error-handling in case of constructor failure?

1060


If a header file is included twice by mistake in the program, will it give any error?

1115


Difference between delete and free.

1137


What is a lambda function c++?

1197