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 namespace & why it is used in c++?

1123


How to generate random numbers in C++ with a range?

931


Will a catch statement catch a derived exception if it is looking for the base class?

1013


How many human genes are polymorphic?

1067


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

1082


Describe Trees using C++ with an example.

1157


How does atoi function work?

1156


Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.

3880


When should overload new operator on a global basis or a class basis?

1081


Where can I run c++ program?

1068


Can the creation of operator** is allowed to perform the to-the-power-of operations?

1005


What is the use of seekg in c++?

1061


Write a program to find the Fibonacci series recursively.

1074


How is data hiding achieved in c++?

1082


what is the use of void main() in C++ language?

1124