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 c++ best used for?
Explain the concept of dynamic allocation of memory?
What does it mean to declare a member function as virtual?
Which software is used to run c++ program?
What is object in oop with example?
What is the difference between interpreters and compilers?
What is basic if statement syntax?
Should a constructor be public or private?
You want to link a c++ program to c functions. How would you do it?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
How do you declare A pointer to function which receives an int pointer and returns a float pointer
How connect plc and pc through software
What are the different types of stl containers?
How compile and run c++ program in turbo c++?
What is the use of register keyword with the variables?