You are here:

C++/Profiling

Advertisement


Question
What is advantage of copy constructor?

Answer
They can be helpful when you want to have the copies of the data part to which a pointer variable is pointing instead of just copying the pointer which would lead to the sharing of data part.
Please read about deep-copying mechanism.

Thanks,
D Rai

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Dharmender Rai

Expertise

I can answer general and system level C/C++ questions.

Experience

I have 5 years of experience in C++.

©2016 About.com. All rights reserved.