What is a "Copy Constructor"?

Answer Posted / hrpynux@gmail.com

In the C++ programming language, a copy constructor is a special constructor for creating a new object as a copy of an existing object.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by late binding?

630


What is singleton pattern in c++?

558


Write about the use of the virtual destructor?

622


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

615


What do you understand by pure virtual function? Write about its use?

592






What is c++ and its features?

585


What do nonglobal variables default to a) auto b) register c) static

660


What is the auto keyword good for in c++?

634


How can you specify a class in C++?

812


What do you mean by friend class & friend function in c++?

627


What does flush do?

568


Difference between strdup and strcpy?

663


What are the various storage classes in C++?

659


What is binary object model?

608


Is set c++?

583