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 Copy Constructor?

Answer Posted / srikanth kanchari

Copy constructor is created by the compiler if you dont
Create, but it does shallow Copy of the Object so there is
a need to create a copy constructor by the Developer to
make deep copy of the object.

Normally it will be

Class A
{
A();
A(A&);// copy constructor
};

Is This Answer Correct ?    19 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c++ best used for?

1101


Explain the concept of dynamic allocation of memory?

1152


What does it mean to declare a member function as virtual?

1118


Which software is used to run c++ program?

1044


What is object in oop with example?

1303


What is the difference between interpreters and compilers?

1270


What is basic if statement syntax?

1148


Should a constructor be public or private?

1086


You want to link a c++ program to c functions. How would you do it?

1039


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

1116


How do you declare A pointer to function which receives an int pointer and returns a float pointer

1281


How connect plc and pc through software

2546


What are the different types of stl containers?

1206


How compile and run c++ program in turbo c++?

1238


What is the use of register keyword with the variables?

976