When copy constructor can be used?

Answer Posted / priya

Whenever u want to copy the members of one object to another
object of the same class in a C++ program.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we overload operator in c++?

552


What is the two main roles of operating system?

514


Should I learn c or c++ first?

568


What is an iterator?

690


What is the use of main function in c++?

529






What is fflush c++?

580


Is facebook written in c++?

564


Difference between strdup and strcpy?

650


Why main function is special in c++?

669


What does new in c++ do?

568


What is the full form of c++?

621


What is the use of structure in c++?

553


Explain selection sorting?

638


What is a wchar_t in c++?

584


If there are two catch statements, one for base and one for derived, which should come first?

580