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
Discuss the role of C++ shorthands.
What is class definition in c++ ?
Explain function prototypes in C++.
#include
Explain the advantages of using friend classes.
What is c++ manipulator?
How is c++ used in the real world?
Explain the difference between class and struct in c++?
List the advantages of inheritance.
Write a program to find the Factorial of a number
What is #include ctype h in c++?
How can you quickly find the number of elements stored in a static array?
Why do we use constructor?
Can abstract class have normal methods?
What are all predefined data types in c++?