What is Copy Constructor?




Answer Posted / swetcha

The purpose of a copy constructor is to initialize a new
object of a given class by copying an existing object of
that class.

Is This Answer Correct ?    61 Yes 3 No






Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantage of using register variables?

78


What is object in c++ example?

34


Which is better c++ or java?

42


How oops is better than procedural?

40


Define pointers?

48






Why do we use using namespace std in c++?

42


How to call a non virtual function in the derived class by using base class pointer

3825


What character terminates all character array strings a) b) . c) END

64


What is null and void pointer?

41


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?

954


What is protected inheritance?

57


Is c++ an oop?

42


Can we create object of interface?

23


What is pointer to array in c++?

17


Explain how overloading takes place in c++?

74