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

Do you know what are pure virtual functions?

1145


Define what is constructor?

1061


what is a class? Explain with an example.

1138


What is tellg () in c++?

1308


Difference between struct and class in terms of access modifier.

1191


Define macro.

1085


What are default parameters? How are they evaluated in c++ function?

1172


Is c++ a dying language?

1147


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2484


Explain how to initialize a const member data.

1033


What is a driver program?

1103


How java is different from c and c++?

1202


What is searching? Explain linear and binary search.

998


Explain the different access specifiers for the class member in c++.

997


Explain the use of this pointer?

1156