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 namespace & why it is used in c++?
How to generate random numbers in C++ with a range?
Will a catch statement catch a derived exception if it is looking for the base class?
How many human genes are polymorphic?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
Describe Trees using C++ with an example.
How does atoi function work?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
When should overload new operator on a global basis or a class basis?
Where can I run c++ program?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
What is the use of seekg in c++?
Write a program to find the Fibonacci series recursively.
How is data hiding achieved in c++?
what is the use of void main() in C++ language?