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 abstraction and encapsulation?
What are the methods of exporting a function from a dll?
What is the basic concept of c++?
What is == in programming?
Is set c++?
Show the declaration for a static function pointer.
What is unary operator? List out the different operators involved in the unary operator.
How many types of modularization are there in c++?
What are guid?
What are virtual functions in c++?
can inline function declare in private part of class?
What is static in oop?
Why do we use classes in c++?
Are there any special rules about inlining?
Why is main an int?