What is Copy Constructor?

Answer Posted / naveen kumar

The copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been created previously.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is exception handling? Does c++ support exception handling?

599


What is c++ redistributable?

632


What is the default width for ouputting a long integer using the insertion operator?

698


What is oops with example?

568


How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?

3217






What is using namespace std in c++?

618


When we use Abstract Class and when we use Interface?where we will implement in real time?

1674


What is one dimensional array in c++?

590


Can we provide one default constructor for our class?

290


What exactly is polymorphism?

614


What is polymorphism what is it for and how is it used?

578


Can you pass a vector to a function?

542


Explain what happens when a pointer is deleted twice?

741


When should I use unitbuf flag?

598


How can you link a c program with a c function?

575