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
What is vector string in c++?
What is the limitation of cin while taking input for character array?
What is the standard template library (stl)?
What is type of 'this' pointer? Explain when it is get created?
What is c++ mutable?
What is a Default constructor?
What is c++ course?
What do you mean by variable?
What is an undefined reference/unresolved external symbol error and how do I fix it?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is data binding in c++?
What is the difference between global int and static int declaration?
What does new in c++ do?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Why is main function important?