What is Copy Constructor?

Answer Posted / sanjay gupta

COPY CONSTRUCTOR IS A SPECIAL CONSTRUCTOR IN C++ PROGRAMMIN
LANGUAGE FOR CREATING A NEW OBJECT AS A COPY OF AN EXISTING
OBJECT

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are iterators pointers?

683


What is the use of data hiding?

605


Do we have to use initialization list in spite of the assignment in constructors?

573


What is encapsulation oop?

581


How do I use arrays in c++?

592






What is stl stand for?

744


Can you pass an array to a function in c++?

547


How can I disable the "echo" feature?

613


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

572


What is the identity function in c++? How is it useful?

561


What is microsoft c++ redistributable?

624


If all is successful, what should main return a) 0 b) 1 c) void

565


What is c++ coding?

660


Explain the advantages of using friend classes.

598


Comment on local and global scope of a variable.

589