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 the difference between a mixin and inheritance?
What is use of overloading?
Differentiate between late binding and early binding. What are the advantages of early binding?
What is void pointer in c++ with example?
What is class and object with example?
What are the advantages of early binding?
What is multilevel inheritance?
What is #include iostream?
What is the difference between a type-specific template friend class and a general template friend class?
Which is best c++ or java?
What are the new features that iso/ansi c++ has added to original c++ specifications?
If you don’t declare a return value, what type of return value is assumed?
describe private access specifiers?
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
What is an arraylist c++?