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 difference between shallow copy and deep copy? Which is default?



What is difference between shallow copy and deep copy? Which is default?..

Answer / hrpynux@gmail.com

Default version of clone method creates the shallow copy of an object. To create the deep copy of an object, you have to override clone method. Shallow copy is preferred if an object has only primitive fields. Deep copy is preferred if an object has references to other objects as fields.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

How to construct virtual constructor

6 Answers   CIStems Software, Symphony,


Why is main function important?

0 Answers  


write the prime no program in c++?

16 Answers  


Do the names of parameters have to agree in the prototype, definition, and call to the function?

0 Answers  


What is input operator in c++?

0 Answers  


How do we balance an AVL Tree in C++?

0 Answers   Impetus,


What is the best book for c++ beginners?

0 Answers  


Which software is best for c++ programming?

0 Answers  


What is a breakpoint?

0 Answers  


What is volatile and pragma? When they are used?

1 Answers  


What do you mean by global variables?

0 Answers  


Show the declaration for a static member variable.

0 Answers  


Categories